History

checksyscalls: only run when necessary

Currently checksyscalls.sh is unconditionally executed during each build. Most of these executions are unnecessary. Only run checksyscalls.sh if one of its inputs have changed. This new logic does not work for the multiple invocations done for MIPS. The effect is that checksyscalls.sh is still executed unconditionally. However this is not worse than before.

Thomas Weißschuh committed 7 months ago

Commit b34db3f1 parent e856b6c2 files · +14 −3Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/checksyscalls.sh+5−0
@@ -275,3 +275,8 @@ syscall_list() { · 274 unmodified lines
275275
276276 (ignore_list && syscall_list ${reference_table}) | \
277277 $* -Wno-error -Wno-unused-macros -E -x c - > /dev/null
278+
279+# For fixdep
280+if [ -n "${DEPFILE}" ]; then
281+ echo "${0}: ${0} ${reference_table}" >> "${DEPFILE}"
282+fi