diff options
| author | ruki <[email protected]> | 2019-08-15 17:02:56 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-08-15 17:02:56 +0800 |
| commit | ff793aba3703a7d082b70403b0b8d52e00f5345b (patch) | |
| tree | 6b87b3c09428c9f5ed77e352c0dc93c3e68d32d6 | |
| parent | 2a44bad6ad730132b6d74da2395787607cc5de21 (diff) | |
| parent | 4f2e25226853830f157a2da79097c527030d42b4 (diff) | |
Merge pull request #530 from OpportunityLiu/patch-1
Update getinfo.lua
| -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..0ee2605c3 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" and k ~= "buildir" 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 }) |
