projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LLVM: Decrease max opt level used under OSX to avoid bug
[ghc-hetmet.git]
/
compiler
/
main
/
DriverPipeline.hs
diff --git
a/compiler/main/DriverPipeline.hs
b/compiler/main/DriverPipeline.hs
index
046e21c
..
f56b122
100644
(file)
--- a/
compiler/main/DriverPipeline.hs
+++ b/
compiler/main/DriverPipeline.hs
@@
-1286,7
+1286,11
@@
runPhase LlvmLlc _stop hsc_env _basename _suff input_fn get_output_fn maybe_loc
return (nphase, dflags, maybe_loc, output_fn)
where
+#if darwin_TARGET_OS
+ llvmOpts = ["-O1", "-O2", "-O2"]
+#else
llvmOpts = ["-O1", "-O2", "-O3"]
+#endif
-----------------------------------------------------------------------------