diff options
| author | ruki <[email protected]> | 2021-11-25 13:11:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-11-25 13:11:13 +0800 |
| commit | a77a0dc5b6c996e5a2a4296237fd0431f8804b09 (patch) | |
| tree | 40ff4541462e26eadfb59e970559b08387b11fc2 /xmake/modules/core/tools/rc.lua | |
| parent | b7588b6bc50d511154b18bad81c3a659ce3e9437 (diff) | |
add rc/has flags
Diffstat (limited to 'xmake/modules/core/tools/rc.lua')
| -rw-r--r-- | xmake/modules/core/tools/rc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/rc.lua b/xmake/modules/core/tools/rc.lua index 208161b67..6796c0fe0 100644 --- a/xmake/modules/core/tools/rc.lua +++ b/xmake/modules/core/tools/rc.lua @@ -25,7 +25,7 @@ import("private.tools.vstool") -- init it function init(self) - if winos.version():gt("winxp") then + if self:has_flags("-nologo", "mrcflags") then -- fix vs2008 on xp, e.g. fatal error RC1106: invalid option: -ologo self:set("mrcflags", "-nologo") end |
