Browse Source

Added make parameter to control native/common compilation

pull/587/head^2
Joakim Lindbom 7 years ago
parent
commit
34de07192a
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      compile.mk

+ 8
- 1
compile.mk View File

@@ -6,7 +6,14 @@ endif
FLAGS += -MMD
FLAGS += -g
# Optimization
FLAGS += -O3 -march=nocona -ffast-math -fno-finite-math-only
FLAGS += -O3
# Native compile flag will be used unless COMMON=true is passed as a parameter to make
ifeq ($(COMMON), true)
FLAGS += -march=nocona
else
FLAGS += -march=native
endif
FLAGS += -ffast-math -fno-finite-math-only
FLAGS += -Wall -Wextra -Wno-unused-parameter
ifneq ($(ARCH), mac)
CXXFLAGS += -Wsuggest-override


Loading…
Cancel
Save