X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2FMakefile;h=1d5137d1c507c164315cfc0100bf6f3dd7fb2fbf;hb=234d2156fdf011a7bb850e3d6172ed2290ab3ad2;hp=880710fe8a7688f6f1e65afa3f4d8232ea076ad1;hpb=79c5f3a69247b44ee6362a3d9236cd9bc048c5f5;p=stockfish diff --git a/src/Makefile b/src/Makefile index 880710fe..1d5137d1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -678,7 +678,7 @@ endif ifeq ($(optimize),yes) ifeq ($(debug), no) ifeq ($(comp),clang) - CXXFLAGS += -flto + CXXFLAGS += -flto=full ifeq ($(target_windows),yes) CXXFLAGS += -fuse-ld=lld endif @@ -688,10 +688,10 @@ ifeq ($(debug), no) # GCC on some systems. else ifeq ($(comp),gcc) ifeq ($(gccisclang),) - CXXFLAGS += -flto + CXXFLAGS += -flto -flto-partition=one LDFLAGS += $(CXXFLAGS) -flto=jobserver else - CXXFLAGS += -flto + CXXFLAGS += -flto=full LDFLAGS += $(CXXFLAGS) endif