Skip to content
Snippets Groups Projects
Commit d0b48113 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot
Browse files

hadrian: Add error when trying to build binary-dist target on windows

The binary dist produced by `binary-dist` target doesn't work on windows
because of the wrapper script the makefile installs. In order to not
surprise any packagers we just give an error if someone tries to build
the old binary-dist target rather than the reloc-binary-dist target.
parent 03474456
No related branches found
No related tags found
No related merge requests found
......@@ -290,7 +290,10 @@ bindistRules = do
IO.removeFile unversioned_wrapper_path <|> return ()
IO.createFileLink versioned_wrapper unversioned_wrapper_path
let buildBinDist = buildBinDistX "binary-dist-dir" "bindist"
let buildBinDist compressor = do
win_target <- isWinTarget
when win_target (error "normal binary-dist does not work for windows target, use `reloc-binary-dist-*` target instead.")
buildBinDistX "binary-dist-dir" "bindist" compressor
buildBinDistReloc = buildBinDistX "reloc-binary-dist-dir" "reloc-bindist"
buildBinDistX :: String -> FilePath -> Compressor -> Action ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment