Skip to content

Commit

Permalink
test flags
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 21, 2024
1 parent db0829f commit 5ffdb38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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,9 +1254,9 @@ function _shrink_cmake_arguments(argv, oldir, opt)
end
shrink = true
return true
end
end]]
-- shrink long arguments
if #v > 128 then
if #v > 0 then
local flags = v:replace("\"", "\\\"")
table.insert(cmake_argv, ("set(%s \"%s\")"):format(k, flags))
shrink = true
Expand Down

0 comments on commit 5ffdb38

Please sign in to comment.