Commit 41865d64 authored by Ho Yin Chan's avatar Ho Yin Chan
Browse files

trunk:tools/rnnlm-hs-0.1b improve compilation options

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@4309 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 1ba5f201
CC = gcc
#The -Ofast might not work with older versions of gcc; in that case, use -O2
CFLAGS = -lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result -std=c99 -g
CFLAGS = `$(CC) -dumpversion | awk '{if(NR==1 && $$1>"4.6") print "-lm -pthread -Ofast -march=native -Wall -funroll-loops -Wno-unused-result -std=c99 -g"; else print "-lm -pthread -march=native -Wall -funroll-loops -std=c99 -g";}'`
all: rnnlm
......@@ -8,4 +8,4 @@ rnnlm : rnnlm.c
$(CC) rnnlm.c -o rnnlm $(CFLAGS)
clean:
rm -rf rnnlm
\ No newline at end of file
rm -rf rnnlm
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment