Commit 9b142c53 authored by Sylvain Henry's avatar Sylvain Henry Committed by Marge Bot

Hadrian: add binary-dist-dir target

This patch adds an Hadrian target "binary-dist-dir". Compared to
"binary-dist", it only builds a binary distribution directory without
creating the Tar archive. It makes the use/test of the bindist
installation script easier.
parent 5f183081
......@@ -97,7 +97,7 @@ other, the install script:
bindistRules :: Rules ()
bindistRules = do
root <- buildRootRules
phony "binary-dist" $ do
phony "binary-dist-dir" $ do
-- We 'need' all binaries and libraries
targets <- mapM pkgTarget =<< stagePackages Stage1
need targets
......@@ -150,6 +150,16 @@ bindistRules = do
, "ghci-script", "haddock", "hpc", "hp2ps", "hsc2hs"
, "runghc"]
phony "binary-dist" $ do
need ["binary-dist-dir"]
version <- setting ProjectVersion
targetPlatform <- setting TargetPlatformFull
let ghcVersionPretty = "ghc-" ++ version ++ "-" ++ targetPlatform
-- Finally, we create the archive <root>/bindist/ghc-X.Y.Z-platform.tar.xz
tarPath <- builderPath (Tar Create)
cmd [Cwd $ root -/- "bindist"] tarPath
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment