1 parent 57cfe66 commit 95ed60dCopy full SHA for 95ed60d
1 file changed
CMakeLists.txt
@@ -82,17 +82,16 @@ if(WIN32)
82
/ENTRY:mainCRTStartup
83
)
84
elseif(MINGW)
85
- # MinGW: 크기 최적화 (-Os), LTO, 미사용 섹션 제거 (Resident Set Size 최소화)
+ # MinGW: 크기 최적화 (-Os), 미사용 섹션 제거 (Resident Set Size 최소화)
86
+ # GCC 16.1.0(MSYS2 MinGW)에서 LTO(-flto) 링크 중 내부 컴파일러 오류가 발생하므로 비활성화한다.
87
target_compile_options(creative_wakatime PRIVATE
88
-Os
- -flto
89
-ffunction-sections
90
-fdata-sections
91
92
target_link_options(creative_wakatime PRIVATE
93
- -Os # LTO 링크 단계 최적화도 크기 우선으로
+ -Os # 링크 단계도 크기 우선으로 최적화
94
-s # Strip symbols for smaller file size
95
96
-Wl,--gc-sections
97
98
endif()
0 commit comments