summaryrefslogtreecommitdiff
path: root/utils/deriveConstants
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-04-24 11:31:51 +0200
committerBen Gamari <ben@smart-cactus.org>2016-04-24 11:37:43 +0200
commit28503fe984dbc00f687f0579967d583eebb9afcb (patch)
tree1ed2dd43e9565055a9c5f854fea64db75db61514 /utils/deriveConstants
parent03006f5ef2daedbbb7b0932b2c0e265f097cf2bf (diff)
downloadhaskell-28503fe984dbc00f687f0579967d583eebb9afcb.tar.gz
deriveConstants: Fix nm-classic error message
Thanks to George Colpitts for the suggestion.
Diffstat (limited to 'utils/deriveConstants')
-rw-r--r--utils/deriveConstants/Main.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 96da16631e..6a050d308c 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -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)