summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/users_guide/8.0.1-notes.rst3
-rw-r--r--utils/deriveConstants/Main.hs2
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/users_guide/8.0.1-notes.rst b/docs/users_guide/8.0.1-notes.rst
index 4db68d24f0..5b10a32b7b 100644
--- a/docs/users_guide/8.0.1-notes.rst
+++ b/docs/users_guide/8.0.1-notes.rst
@@ -24,8 +24,7 @@ performance improvements over the 7.10 branch.
system to use the ``nm-classic`` command instead of Apple's new ``nm``
implementation as the latter breaks POSIX compliance (see
:ghc-ticket:`11744`). This can be done by passing something like
- ``--with-nm=/Library/Developer/CommandLineTools/usr/bin/nm-classic`` to
- ``configure``.
+ ``--with-nm=$(xcrun --find nm-classic)`` to ``configure``.
Highlights
----------
diff --git a/utils/deriveConstants/Main.hs b/utils/deriveConstants/Main.hs
index 6a050d308c..6cd48d4564 100644
--- a/utils/deriveConstants/Main.hs
+++ b/utils/deriveConstants/Main.hs
@@ -693,7 +693,7 @@ getWanted verbose os tmpdir gccProgram gccFlags nmProgram mobjdumpProgram
Just 0x292 -> die $ "broken 'nm' detected, see https://ghc.haskell.org/ticket/11744.\n"
++ "\n"
++ "Workaround: You may want to pass\n"
- ++ " --with-nm=$(xcode-select -p)/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm-classic\n"
+ ++ " --with-nm=$(xcrun --find nm-classic\n"
++ "to 'configure'.\n"
Just x -> die ("unexpected value round-tripped for CONTROL_GROUP_CONST_291: " ++ show x)