summaryrefslogtreecommitdiff
path: root/hadrian/src/Settings/Packages/RunGhc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Settings/Packages/RunGhc.hs')
-rw-r--r--hadrian/src/Settings/Packages/RunGhc.hs9
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]