summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-21 23:19:00 +0800
committerruki <[email protected]>2024-11-21 23:19:00 +0800
commitff96dc6a63dd416379f9c15e098273fe0c0fcd1a (patch)
treec4a1118532d6bc96f9377538f9cd59234bc6a4d0
parentdb0829f412cccc928d0f895bdebfec8874593781 (diff)
revert cmake flags
-rw-r--r--xmake/modules/package/tools/cmake.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 770c1a631..b99194088 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -1240,6 +1240,7 @@ function _shrink_cmake_arguments(argv, oldir, opt)
end
-- improve cmake flags
-- @see https://github.com/xmake-io/xmake/issues/5826
+ --[[
local build_type = mode and buildtypes_map[mode] or nil
if #v > 0 and add_compile_options and (kind == "C" or kind == "CXX" or kind == "ASM") then
if build_type then
@@ -1253,7 +1254,7 @@ function _shrink_cmake_arguments(argv, oldir, opt)
end
shrink = true
return true
- end
+ end]]
-- shrink long arguments
if #v > 128 then
local flags = v:replace("\"", "\\\"")