X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=1ff03f8391acca25bc4e3c5af9938d3408aa062d;hp=55139a1f75eb92dc34e8628721cadef8f73b9b27;hb=550fed3343089357dc89ecf78ce8eb4b35bcab88;hpb=1f87a9eb6c2cd51be5a2f28d8b5694d931408a66 diff --git a/src/Makefile b/src/Makefile index 55139a1f..1ff03f83 100644 --- a/src/Makefile +++ b/src/Makefile @@ -481,6 +481,10 @@ ifeq ($(optimize),yes) CXXFLAGS += -mdynamic-no-pic endif endif + + ifeq ($(comp),clang) + CXXFLAGS += -fexperimental-new-pass-manager + endif endif ### 3.4 Bits @@ -590,7 +594,7 @@ endif ifeq ($(optimize),yes) ifeq ($(debug), no) ifeq ($(comp),clang) - CXXFLAGS += -flto=thin + CXXFLAGS += -flto ifneq ($(findstring MINGW,$(KERNEL)),) CXXFLAGS += -fuse-ld=lld else ifneq ($(findstring MSYS,$(KERNEL)),) @@ -610,7 +614,7 @@ ifeq ($(debug), no) LDFLAGS += -save-temps endif else - CXXFLAGS += -flto=thin + CXXFLAGS += -flto LDFLAGS += $(CXXFLAGS) endif