Commit 28503fe9 authored by Ben Gamari's avatar Ben Gamari 🐢

deriveConstants: Fix nm-classic error message

Thanks to George Colpitts for the suggestion.
parent 03006f5e
......@@ -691,7 +691,10 @@ getWanted verbose os tmpdir gccProgram gccFlags nmProgram mobjdumpProgram
Just 292 -> return () -- OK
Nothing -> die "CONTROL_GROUP_CONST_291 missing!"
Just 0x292 -> die $ "broken 'nm' detected, see https://ghc.haskell.org/ticket/11744.\n"
++ "Workaround: You may want to pass '--with-nm=nm-classic' to 'configure'."
++ "\n"
++ "Workaround: You may want to pass\n"
++ " --with-nm=$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm-classic\n"
++ "to 'configure'.\n"
Just x -> die ("unexpected value round-tripped for CONTROL_GROUP_CONST_291: " ++ show x)
rs <- mapM (lookupResult m) (wanteds os)
......
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