summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-25 13:11:13 +0800
committerruki <[email protected]>2021-11-25 13:11:13 +0800
commita77a0dc5b6c996e5a2a4296237fd0431f8804b09 (patch)
tree40ff4541462e26eadfb59e970559b08387b11fc2 /xmake/modules/core/tools/rc.lua
parentb7588b6bc50d511154b18bad81c3a659ce3e9437 (diff)
add rc/has flags
Diffstat (limited to 'xmake/modules/core/tools/rc.lua')
-rw-r--r--xmake/modules/core/tools/rc.lua2
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