diff options
author | Ian Lynagh <igloo@earth.li> | 2009-05-20 22:40:20 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2009-05-20 22:40:20 +0000 |
commit | d282b3c7ff1c950023206b50a480cc8a285dae12 (patch) | |
tree | 0a315ee699c23fb1b7af9a299efc16ef6835c267 /compiler | |
parent | aaf192c3fba95ba4adf3e128551b7cb579890ad1 (diff) | |
download | haskell-d282b3c7ff1c950023206b50a480cc8a285dae12.tar.gz |
Need to pass gcc -m64 on amd64 OSX
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/main/DynFlags.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 4e1b5ae23f..50fd2cf9cb 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 |