Pass conf-cc-args-stageN to Gcc builder.
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Mon, 11 Apr 2016 22:18:19 +0000 (23:18 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Mon, 11 Apr 2016 22:18:19 +0000 (23:18 +0100)
See #221.

src/Settings/Builders/Gcc.hs

index 4902ea3..7c237da 100644 (file)
@@ -2,6 +2,7 @@ module Settings.Builders.Gcc (gccBuilderArgs, gccMBuilderArgs) where
 
 import Development.Shake.FilePath
 import Expression
+import Oracles.Config.Setting
 import Oracles.PackageData
 import Predicates (stagedBuilder)
 import Settings
@@ -30,4 +31,5 @@ gccMBuilderArgs = stagedBuilder GccM ? do
 
 commonGccArgs :: Args
 commonGccArgs = mconcat [ append =<< getPkgDataList CcArgs
+                        , append =<< getSettingList . ConfCcArgs =<< getStage
                         , cIncludeArgs ]