summaryrefslogtreecommitdiff
path: root/xmake/rules/wdk/man/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2018-05-17 00:42:04 +0800
committerruki <[email protected]>2018-05-16 22:12:28 +0800
commit4e9bcf218d167b0efa875625f0b75f1e88c9f9b7 (patch)
tree825c15a075508157dbd81c5ded6f9e3679dd05bc /xmake/rules/wdk/man/xmake.lua
parent9275981ad07841dad83f07235339efc06dd40af8 (diff)
improve wdk rules
Diffstat (limited to 'xmake/rules/wdk/man/xmake.lua')
-rw-r--r--xmake/rules/wdk/man/xmake.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/rules/wdk/man/xmake.lua b/xmake/rules/wdk/man/xmake.lua
index 8158fa610..36dd181ba 100644
--- a/xmake/rules/wdk/man/xmake.lua
+++ b/xmake/rules/wdk/man/xmake.lua
@@ -39,9 +39,12 @@ rule("wdk.man")
-- get arch
local arch = assert(config.arch(), "arch not found!")
+
+ -- get wdk
+ local wdk = target:data("wdk")
-- get ctrpp
- local ctrpp = path.join(target:data("wdk").bindir, arch, is_host("windows") and "ctrpp.exe" or "ctrpp")
+ local ctrpp = path.join(wdk.bindir, arch, is_host("windows") and "ctrpp.exe" or "ctrpp")
assert(ctrpp and os.isexec(ctrpp), "ctrpp not found!")
-- save ctrpp