diff options
| author | Opportunity <[email protected]> | 2019-08-15 15:10:59 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-15 15:10:59 +0800 |
| commit | 4ebfcf74528347f5a61bbee585c7abb6dd9e40ea (patch) | |
| tree | a96123632830527570508a42453de909e093d042 /xmake/plugins | |
| parent | 2a44bad6ad730132b6d74da2395787607cc5de21 (diff) | |
Update getinfo.lua
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/project/vsxmake/getinfo.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/project/vsxmake/getinfo.lua b/xmake/plugins/project/vsxmake/getinfo.lua index b56534784..d0b34fc7e 100644 --- a/xmake/plugins/project/vsxmake/getinfo.lua +++ b/xmake/plugins/project/vsxmake/getinfo.lua @@ -167,7 +167,7 @@ function _make_targetinfo(mode, arch, target) local configcache = cache("local.config") local flags = {} for k, v in pairs(configcache:get("options_" .. target:name())) do - if k ~= "plat" and k ~= "mode" and k ~= "arch" then + if k ~= "plat" and k ~= "mode" and k ~= "arch" and k ~= "clean" then table.insert(flags, "--" .. k .. "=" .. tostring(v)); end end @@ -190,7 +190,7 @@ function _make_targetinfo(mode, arch, target) elseif target:rule("win.sdk.mfc.static_app") or target:rule("win.sdk.mfc.static") then targetinfo.mfckind = "Static" end - + -- use cuda? save the cuda runtime version if target:rule("cuda") then local nvcc = find_tool("nvcc", { version = true }) |
