summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools/find_rc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-21 00:49:28 +0800
committerruki <[email protected]>2019-09-20 22:56:48 +0800
commit8e57109a69c4c19be728e7797124f8ff5a4a6e35 (patch)
treec09f0509c7fa941444884e1a0dd628d6b9afdd98 /xmake/modules/detect/tools/find_rc.lua
parente037a04e699bd67832024fdd6729e0ea835784e2 (diff)
uses devenv to load and debug win program
Diffstat (limited to 'xmake/modules/detect/tools/find_rc.lua')
-rw-r--r--xmake/modules/detect/tools/find_rc.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/detect/tools/find_rc.lua b/xmake/modules/detect/tools/find_rc.lua
index cadf9fc6e..4157bcca4 100644
--- a/xmake/modules/detect/tools/find_rc.lua
+++ b/xmake/modules/detect/tools/find_rc.lua
@@ -37,6 +37,11 @@ import("lib.detect.find_programver")
--
function main(opt)
+ -- not on windows?
+ if not is_host("windows") then
+ return
+ end
+
-- init options
opt = opt or {}
opt.check = opt.check or "-?"