[commit: nofib] master: Build fasta.c with optimization enabled. (e4bfef7)

Austin Seipp mad.one at gmail.com
Tue Jun 25 13:43:14 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/nofib

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e4bfef750ab8db357303a2bdbc6bbeeebbce327b

>---------------------------------------------------------------

commit e4bfef750ab8db357303a2bdbc6bbeeebbce327b
Author: Austin Seipp <aseipp at pobox.com>
Date:   Tue Jun 25 06:42:25 2013 -0500

    Build fasta.c with optimization enabled.
    
    The flags are from the shootout.
    
    This also avoids a bizarro linking error when CC=clang
    
    Signed-off-by: Austin Seipp <aseipp at pobox.com>

>---------------------------------------------------------------

 shootout/fasta/Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/shootout/fasta/Makefile b/shootout/fasta/Makefile
index 4c09caa..9ffd906 100644
--- a/shootout/fasta/Makefile
+++ b/shootout/fasta/Makefile
@@ -16,8 +16,8 @@ HC_OPTS += -O2 -XBangPatterns -XOverloadedStrings -package bytestring
 #------------------------------------------------------------------
 # Create output to validate against
 
-fasta-c : fasta-c.o
-	$(CC) $< -o $@
+fasta-c : fasta-c.c
+	$(CC) -std=gnu99 -march=native -O3 -fomit-frame-pointer $< -o $@
 
 fasta.faststdout : fasta-c
 	./fasta-c $(FAST_OPTS) > $@





More information about the ghc-commits mailing list