Skip to content

Commit 8f81bee

Browse files
committed
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.
1 parent 76149eb commit 8f81bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/shared_bindings_matrix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def get_settings_from_makefile(port_dir, board_name):
9090
in this script, something that has proved error-prone
9191
"""
9292

93-
status, contents = subprocess.getstatusoutput(f"make -C {port_dir} BOARD={board_name} -qp")
93+
status, contents = subprocess.getstatusoutput(f"make -C {port_dir} BOARD={board_name} -qp print-CC")
9494
# Make signals errors with exit status 2; 0 and 1 are "non-error" statuses
9595
if status not in (0, 1):
9696
raise RuntimeError(f'Invoking make exited with {status}')

0 commit comments

Comments
 (0)