From d5596f670c3b1ae3b809a1b135e02488ff578519 Mon Sep 17 00:00:00 2001 From: David Cock Date: Mon, 31 Aug 2015 11:19:12 +0200 Subject: [PATCH] Add explicit dependency from asmoffsets.s to errno.h Otherwise there's a race condition. Signed-off-by: David Cock --- tools/asmoffsets/Hakefile | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) 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"), -- 1.7.2.5