Skip to content

Commit 426374a

Browse files
committed
always cmkae_lto off
1 parent 5805fcb commit 426374a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmake/modules/package/tools/cmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ function _get_configs(package, configs, opt)
947947
end
948948

949949
if not opt._configs_str:find("CMAKE_INTERPROCEDURAL_OPTIMIZATION", 1, true) then
950-
table.insert(configs, "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=" .. (package:config("lto") and "ON" or "OFF"))
950+
table.insert(configs, "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF")
951951
end
952952

953953
-- fix error for cmake 4.x

0 commit comments

Comments
 (0)