diff options
author | Andrey Mokhov <andrey.mokhov@gmail.com> | 2017-11-06 22:59:38 +0000 |
---|---|---|
committer | Andrey Mokhov <andrey.mokhov@gmail.com> | 2017-11-06 22:59:38 +0000 |
commit | 5cee48036ed69ae298a599d43cf72e0fe73e3b4e (patch) | |
tree | 5fe732c738a769d02e732469f4ffecd4ac9e191a /hadrian/src/Settings/Packages/RunGhc.hs | |
parent | 275ac8ef0a0081f16abbfb8934e10cf271573768 (diff) | |
parent | 7b0b9f603bb1215e2b7af23c2404d637b95a4988 (diff) | |
download | haskell-5cee48036ed69ae298a599d43cf72e0fe73e3b4e.tar.gz |
Merge commit '7b0b9f603bb1215e2b7af23c2404d637b95a4988' as 'hadrian'
Diffstat (limited to 'hadrian/src/Settings/Packages/RunGhc.hs')
-rw-r--r-- | hadrian/src/Settings/Packages/RunGhc.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/hadrian/src/Settings/Packages/RunGhc.hs b/hadrian/src/Settings/Packages/RunGhc.hs new file mode 100644 index 0000000000..03a19c8373 --- /dev/null +++ b/hadrian/src/Settings/Packages/RunGhc.hs @@ -0,0 +1,9 @@ +module Settings.Packages.RunGhc (runGhcPackageArgs) where + +import Oracles.Setting +import Expression + +runGhcPackageArgs :: Args +runGhcPackageArgs = package runGhc ? builder Ghc ? input "//Main.hs" ? do + version <- getSetting ProjectVersion + pure ["-cpp", "-DVERSION=" ++ show version] |