Build: improve diag / use -isystem for dependencies

master
heck 2 months ago
parent 614f1dcf7d
commit 259e40d6b4

@ -16,8 +16,9 @@ PREFIX?=$(HOME)
-include $(HERE)local.conf
# Constants
CXXFLAGS+=-std=c++11 -fPIC -Wall -Wextra -pedantic
CXXFLAGS+=-I$(PREFIX)/include
CXXFLAGS+=-std=c++11 -fPIC
CXXFLAGS+=-Wall -pedantic-errors -Wno-unused-parameter -Wno-reorder-ctor
CXXFLAGS+=-isystem $(PREFIX)/include
CFLAGS+=-fPIC -pthread -DSQLITE_THREADSAFE=1
LDFLAGS+=-L$(PREFIX)/lib
@ -25,7 +26,7 @@ ifneq (,$(findstring g++,$(CXX)))
CXXFLAGS+=-fdiagnostics-color=always
CFLAGS+=-fdiagnostics-color=always
else ifneq (,$(findstring clang,$(CXX)))
CXXFLAGS+=-fcolor-diagnostics
CXXFLAGS+=-fcolor-diagnostics -fdiagnostics-show-template-tree
CFLAGS+=-fcolor-diagnostics
endif

Loading…
Cancel
Save