]> gitweb.michael.orlitzky.com - spline3.git/commitdiff
Default to compiling with llvm.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 3 Sep 2011 20:55:40 +0000 (16:55 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 3 Sep 2011 20:55:40 +0000 (16:55 -0400)
Add a 'gcc' makefile target.

makefile

index 74b7b952da81538bb4560f10d79b3da11192d26d..c230b4bdeea355d0a0e80e82af23cc78a411afa1 100644 (file)
--- a/makefile
+++ b/makefile
@@ -15,8 +15,6 @@ GHC_WARNINGS += -fwarn-unused-do-bind
 OPTIMIZATIONS := -O2
 OPTIMIZATIONS += -fexcess-precision
 OPTIMIZATIONS += -fno-spec-constr-count
-OPTIMIZATIONS += -optc-O2
-OPTIMIZATIONS += -optc-march=native
 
 GHC_OPTS := $(OPTIMIZATIONS) \
            $(GHC_WARNINGS)  \
@@ -31,7 +29,10 @@ GHC_OPTS := $(OPTIMIZATIONS) \
 .PHONY : test publish_doc doc src_html hlint
 
 $(BIN): src/*.hs
-       ghc $(GHC_OPTS) src/*.hs
+       ghc -fllvm $(GHC_OPTS) src/*.hs
+
+gcc: src/*.hs
+       ghc -optc-O2 -optc-march=native $(GHC_OPTS) src/*.hs
 
 all: $(BIN) test_src