diff options
author | Ethan Kiang <chocopuff298@gmail.com> | 2021-06-22 21:34:34 +0800 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-07-06 13:37:24 -0400 |
commit | 4002bd1dcee0d05927abc669d6848c43b124c253 (patch) | |
tree | dbbce87ba00b31fbcf21873918d9c2fe1266b93c /hadrian/src/Flavour.hs | |
parent | a4e742c5157f268781761553496e8e37e3f00ab5 (diff) | |
download | haskell-4002bd1dcee0d05927abc669d6848c43b124c253.tar.gz |
Pass '-x c++' and '-std=c++11' to `cc` for cpp files, in Hadrian
'-x c++' was found to be required on Darwin Clang 11 and 12.
'-std=c++' was found to be needed on Clang 12 but not 11.
Diffstat (limited to 'hadrian/src/Flavour.hs')
-rw-r--r-- | hadrian/src/Flavour.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index d8f34347f4..aa31de83fa 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -391,7 +391,8 @@ builderSetting = ccBuilder = [ ("c", CompileC) - , ("deps", FindCDependencies) + -- Not sure how to handle the FindCDependencies CxxDep case + , ("deps", FindCDependencies CDep) ] stages = map (\stg -> (stageString stg, stg)) [minBound..maxBound] |