diff options
| author | ruki <[email protected]> | 2018-12-20 23:55:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-12-20 17:34:56 +0800 |
| commit | d95758dc85e1e34e6ce507ffee78f7634a0661c5 (patch) | |
| tree | f740966dedf5eea54bf54c4f7d379fcfa012034a /xmake/modules/core/tools/cl.lua | |
| parent | cbce3651b8baff9d4cad89b3056e629c9ace4a41 (diff) | |
add flagkind to has_flags
Diffstat (limited to 'xmake/modules/core/tools/cl.lua')
| -rw-r--r-- | xmake/modules/core/tools/cl.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua index e2434d0ec..a05add33e 100644 --- a/xmake/modules/core/tools/cl.lua +++ b/xmake/modules/core/tools/cl.lua @@ -105,7 +105,7 @@ function nf_symbol(self, level, target) -- check and add symbol output file flags = "-Zi -Fd" .. target:symbolfile() - if self:has_flags({"-Zi", "-FS", "-Fd" .. os.tmpfile() .. ".pdb"}) then + if self:has_flags({"-Zi", "-FS", "-Fd" .. os.tmpfile() .. ".pdb"}, "cxflags") then flags = "-FS " .. flags end else @@ -165,7 +165,7 @@ function nf_vectorext(self, extension) -- check it local flag = maps[extension] - if flag and self:has_flags(flag) then + if flag and self:has_flags(flag, "cxflags") then return flag end end @@ -215,7 +215,7 @@ function nf_language(self, stdname) local flag = maps[stdname] -- not support it? - if flag and flag:find("std:c++", 1, true) and not self:has_flags(flag) then + if flag and flag:find("std:c++", 1, true) and not self:has_flags(flag, "cxflags") then return end |
