add -march=native flag to C
This commit is contained in:
parent
3fb6eb0c0e
commit
841e4eda90
|
@ -25,6 +25,7 @@ DEBUG= #'-g'
|
|||
STANDARD=-std=c99
|
||||
WARNINGS=-Wall
|
||||
OPTIMIZED=-O3 #-O3 actually gives better performance than -Ofast, at least for this version
|
||||
LOCAL=-march=native
|
||||
OPENMP=-fopenmp
|
||||
|
||||
## Formatter
|
||||
|
@ -33,10 +34,10 @@ FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
|
|||
|
||||
## make build
|
||||
build: $(SRC)
|
||||
$(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT)
|
||||
$(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(LOCAL) $(OPENMP) $(MATH) -o $(OUTPUT)
|
||||
|
||||
static:
|
||||
$(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT)
|
||||
$(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(LOCAL) $(OPENMP) $(MATH) -o $(OUTPUT)
|
||||
|
||||
format: $(SRC)
|
||||
$(FORMATTER) $(SRC)
|
||||
|
|
Loading…
Reference in New Issue
Block a user