shared_bindings_matrix: Use a trivial target
Sommersoft noticed that without submodules (as RTD currently does), the "make -qp" failed due to trying to find files within submodules. The "print-VAR" target doesn't have any dependencies, so it sidesteps the problem. If we move ulab's pyi files into the submodule, though, we'll need to fetch submodules anyway during doc building.
This commit is contained in:
parent
76149ebf57
commit
8f81beea7e
@ -90,7 +90,7 @@ def get_settings_from_makefile(port_dir, board_name):
|
||||
in this script, something that has proved error-prone
|
||||
"""
|
||||
|
||||
status, contents = subprocess.getstatusoutput(f"make -C {port_dir} BOARD={board_name} -qp")
|
||||
status, contents = subprocess.getstatusoutput(f"make -C {port_dir} BOARD={board_name} -qp print-CC")
|
||||
# Make signals errors with exit status 2; 0 and 1 are "non-error" statuses
|
||||
if status not in (0, 1):
|
||||
raise RuntimeError(f'Invoking make exited with {status}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user