From: David Cock Date: Mon, 31 Aug 2015 09:19:12 +0000 (+0200) Subject: Add explicit dependency from asmoffsets.s to errno.h X-Git-Tag: release2015-09-03~10 X-Git-Url: http://git.barrelfish.org/?p=barrelfish;a=commitdiff_plain;h=d5596f670c3b1ae3b809a1b135e02488ff578519 Add explicit dependency from asmoffsets.s to errno.h Otherwise there's a race condition. Signed-off-by: David Cock --- diff --git a/tools/asmoffsets/Hakefile b/tools/asmoffsets/Hakefile index e355cee..6ad50b4 100644 --- a/tools/asmoffsets/Hakefile +++ b/tools/asmoffsets/Hakefile @@ -17,7 +17,13 @@ concat [ let d /= Dep InstallTree arch "/include/asmoffsets.h"] } in - [ Rule (makecToAssembler opts "src" "asmoffsets.c" "asmoffsets.s"), -- asmoffsets.s here is not the output it is the stem of the presumed output for the depenedency + -- asmoffsets.s here is not the output it is the stem of the presumed + -- output for the dependency. + [ Rule (makecToAssembler opts { extraDependencies = + extraDependencies opts ++ + [ Dep BuildTree arch + "/include/errors/errno.h" ] } + "src" "asmoffsets.c" "asmoffsets.s"), makeDependAssembler opts "src" "asmoffsets.c", Rule [ Str "grep -E '^#(if|ifndef|ifdef|define|undef|endif)'", In BuildTree arch (assemblerFilePath opts "asmoffsets.c"),