]> git.sesse.net Git - stockfish/blobdiff - src/Makefile
Apply -flto-partition=one / -flto=full
[stockfish] / src / Makefile
index 880710fe8a7688f6f1e65afa3f4d8232ea076ad1..1d5137d1c507c164315cfc0100bf6f3dd7fb2fbf 100644 (file)
@@ -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