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.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -275,3 +275,8 @@ syscall_list() { · 274 unmodified lines | ||
| 275 | 275 | |
| 276 | 276 | (ignore_list && syscall_list ${reference_table}) | \ |
| 277 | 277 | $* -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 | |