summaryrefslogtreecommitdiff
path: root/xmake/modules/lib/detect/has_flags.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-27 23:26:18 +0800
committerruki <[email protected]>2023-02-27 14:38:46 +0800
commit58b151f08ab263a9ff3f9de0943a8ef142c2c2a4 (patch)
tree9415c558816d6c4f967c12feb329db9d45cd37db /xmake/modules/lib/detect/has_flags.lua
parent7fa4d6545b43ae3ab7e3d31d5a0c3ff0dc9c9181 (diff)
improve has_flags
Diffstat (limited to 'xmake/modules/lib/detect/has_flags.lua')
-rw-r--r--xmake/modules/lib/detect/has_flags.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/lib/detect/has_flags.lua b/xmake/modules/lib/detect/has_flags.lua
index 88bb958b5..1d5cd3848 100644
--- a/xmake/modules/lib/detect/has_flags.lua
+++ b/xmake/modules/lib/detect/has_flags.lua
@@ -43,6 +43,8 @@ import("lib.detect.find_tool")
function main(name, flags, opt)
-- wrap flags first
+ flags = table.clone(flags)
+ table.wrap_unlock(flags)
flags = table.wrap(flags)
-- init options