EightBit/compile.mk
Adrian Conlon 033969bbe3 Add profile guided optimisation to build configuration (profile/profiled)
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2017-11-30 14:59:24 +00:00

10 lines
336 B
Makefile

CXXFLAGS += -g -Wall -std=c++14 -pipe
#CXXFLAGS_OPT = -DNDEBUG -march=native -Ofast -flto
CXXFLAGS_OPT = -DNDEBUG -march=native -Ofast
CXXFLAGS_DEBUG = -D_DEBUG
CXXFLAGS_COVERAGE = $(CXXFLAGS_DEBUG) -fprofile-arcs -ftest-coverage
CXXFLAGS_PROFILE = $(CXXFLAGS_OPT) -fprofile-generate
CXXFLAGS_PROFILED = $(CXXFLAGS_OPT) -fprofile-use