From: Michael Orlitzky Date: Sat, 3 Sep 2011 20:55:40 +0000 (-0400) Subject: Default to compiling with llvm. X-Git-Tag: 0.0.1~170 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=c3d4eba6aa5ada928b351e9ec7c12c3077808ba7;p=spline3.git Default to compiling with llvm. Add a 'gcc' makefile target. --- diff --git a/makefile b/makefile index 74b7b95..c230b4b 100644 --- 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