Skip to content
Snippets Groups Projects
Commit fa3771fe authored by Ben Gamari's avatar Ben Gamari Committed by Andrey Mokhov
Browse files

hadrian: Disable -Wno-undef in files which include ffi.h (#459)

As pointed out in D4181, these headers refer to undefined macros.
parent f15e851c
No related merge requests found
......@@ -177,9 +177,15 @@ rtsPackageArgs = package rts ? do
, input "//StgCRun.c" ? windowsHost ? arg "-Wno-return-local-addr"
, input "//RetainerProfile.c" ? flag GccIsClang ?
arg "-Wno-incompatible-pointer-types"
, windowsHost ? arg ("-DWINVER=" ++ windowsVersion)
-- libffi's ffi.h triggers various warnings
, inputs [ "//Interpreter.c", "//Storage.c", "//Adjustor.c" ] ?
arg "-Wno-strict-prototypes"
, windowsHost ? arg ("-DWINVER=" ++ windowsVersion) ]
, inputs ["//Interpreter.c", "//Adjustor.c", "//sm/Storage.c"] ?
anyTargetArch ["powerpc"] ? arg "-Wno-undef"
]
mconcat
[ builder (Cc FindCDependencies) ? cArgs
, builder (Ghc CompileCWithGhc) ? map ("-optc" ++) <$> cArgs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment