diff options
| author | ruki <[email protected]> | 2022-03-02 23:29:35 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-03-02 23:29:35 +0800 |
| commit | f6a48a7481bffa3f8b97ac9cd509eb7f4c202559 (patch) | |
| tree | 77e3c441cb5d344e6037300a35ece91fa0c5f6a0 /xmake/core/base/scopeinfo.lua | |
| parent | aeb97fe6d7d7385fddb494dc4f4a892993e03876 (diff) | |
add wraplock
Diffstat (limited to 'xmake/core/base/scopeinfo.lua')
| -rw-r--r-- | xmake/core/base/scopeinfo.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/base/scopeinfo.lua b/xmake/core/base/scopeinfo.lua index 4e0d5a73c..b826ac648 100644 --- a/xmake/core/base/scopeinfo.lua +++ b/xmake/core/base/scopeinfo.lua @@ -119,9 +119,7 @@ function _instance:_api_set_values(name, ...) -- e.g. target:set("shflags", {"-Wl,-exported_symbols_list", exportfile}, {force = true, expand = false}) if extra_config and extra_config.expand == false then for _, value in ipairs(values) do - if type(value) == "table" then - value.__object__ = true - end + table.wraplock(value) end else -- expand values @@ -170,9 +168,7 @@ function _instance:_api_add_values(name, ...) -- e.g. target:add("shflags", {"-Wl,-exported_symbols_list", exportfile}, {force = true, expand = false}) if extra_config and extra_config.expand == false then for _, value in ipairs(values) do - if type(value) == "table" then - value.__object__ = true - end + table.wraplock(value) end else -- expand values |
