Make the build more clang friendly

This commit is contained in:
David Carlier
2018-07-30 16:50:07 +01:00
parent b6d879d510
commit 166ca857fd
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -35,7 +35,11 @@ else
CXXFLAGS += -DNDEBUG
endif
ifndef NLTO
ifeq (,$(findstring g++, $(CC)))
CXXFLAGS += -flto=6
else
CXXFLAGS += -flto=thin
endif
else
CXXFLAGS += -fno-lto
endif