Skip to content

Commit

Permalink
revert cmake flags
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 21, 2024
1 parent db0829f commit ff96dc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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("\"", "\\\"")
Expand Down

0 comments on commit ff96dc6

Please sign in to comment.