Skip to content
Snippets Groups Projects
Commit 91d1a773 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

hadrian: Don't pass empty paths via -I

Previously we could in some cases add empty paths to `cc`'s include file
search path. See #20578.
parent 7bdca2ba
No related branches found
No related tags found
No related merge requests found
......@@ -277,8 +277,8 @@ rtsPackageArgs = package rts ? do
let cArgs = mconcat
[ rtsWarnings
, flag UseSystemFfi ? arg ("-I" ++ ffiIncludeDir)
, flag WithLibdw ? arg ("-I" ++ libdwIncludeDir)
, flag UseSystemFfi ? not (null ffiIncludeDir) ? arg ("-I" ++ ffiIncludeDir)
, flag WithLibdw ? not (null libdwIncludeDir) ? arg ("-I" ++ libdwIncludeDir)
, arg "-fomit-frame-pointer"
-- RTS *must* be compiled with optimisations. The INLINE_HEADER macro
-- requires that functions are inlined to work as expected. Inlining
......
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