From c3d4eba6aa5ada928b351e9ec7c12c3077808ba7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 3 Sep 2011 16:55:40 -0400 Subject: [PATCH] Default to compiling with llvm. Add a 'gcc' makefile target. --- makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.43.2