File tree 2 files changed +6
-8
lines changed 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ endif()
45
45
# general
46
46
option (LLAMA_STATIC "llama: static link libraries" OFF )
47
47
option (LLAMA_NATIVE "llama: enable -march=native flag" ON )
48
- option (LLAMA_LTO "llama: enable link time optimization" OFF )
48
+ option (LLAMA_LTO "llama: enable link time optimization" ON )
49
49
50
50
# debug
51
51
option (LLAMA_ALL_WARNINGS "llama: enable all compiler warnings" ON )
@@ -676,8 +676,6 @@ add_library(ggml OBJECT
676
676
${GGML_SOURCES_EXTRA} ${GGML_HEADERS_EXTRA}
677
677
)
678
678
679
- set_property (TARGET ggml PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE )
680
-
681
679
target_include_directories (ggml PUBLIC . ${LLAMA_EXTRA_INCLUDES} )
682
680
target_compile_features (ggml PUBLIC c_std_11) # don't bump
683
681
target_link_libraries (ggml PUBLIC Threads::Threads ${LLAMA_EXTRA_LIBS} )
Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ MK_CXXFLAGS = -std=c++11 -fPIC
120
120
121
121
# -Ofast tends to produce faster code, but may not be available for some compilers.
122
122
ifdef LLAMA_FAST
123
- MK_CFLAGS += -flto -Ofast
124
- MK_HOST_CXXFLAGS += -flto - Ofast
125
- MK_CUDA_CXXFLAGS += -flto - O3
123
+ MK_CFLAGS += -Ofast -flto
124
+ MK_HOST_CXXFLAGS += -Ofast
125
+ MK_CUDA_CXXFLAGS += -O3
126
126
else
127
- MK_CFLAGS += -flto -O3
128
- MK_CXXFLAGS += -flto - O3
127
+ MK_CFLAGS += -O3 -flto
128
+ MK_CXXFLAGS += -O3
129
129
endif
130
130
131
131
# clock_gettime came in POSIX.1b (1993)
You can’t perform that action at this time.
0 commit comments