diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 4e1b5ae23fe27854f12743a8befebf9447a97b7a..50fd2cf9cb4b5ca293adfc58d5a75b0a2c144480 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -2258,7 +2258,13 @@ machdepCCOpts _dflags = ( [], ["-fomit-frame-pointer", "-G0"] ) #elif x86_64_TARGET_ARCH - = ( [], ["-fomit-frame-pointer", + = ( +#if darwin_TARGET_OS + ["-m64"], +#else + [], +#endif + ["-fomit-frame-pointer", "-fno-asynchronous-unwind-tables", -- the unwind tables are unnecessary for HC code, -- and get in the way of -split-objs. Another option