summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeeSong <[email protected]>2020-05-10 17:59:30 +0800
committerGitHub <[email protected]>2020-05-10 17:59:30 +0800
commit189be9fa99c373b434596e868d3eb835c06513f9 (patch)
treed7f5d68a37e61972e10649841977125d1c26f05b
parente2e80bba1f77db75696236e3ea22a0a9d8f4a9eb (diff)
FIX WDK path
FIX WDK path
-rw-r--r--xmake/rules/wdk/mof/xmake.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/rules/wdk/mof/xmake.lua b/xmake/rules/wdk/mof/xmake.lua
index 5e2f25141..c155307fa 100644
--- a/xmake/rules/wdk/mof/xmake.lua
+++ b/xmake/rules/wdk/mof/xmake.lua
@@ -53,6 +53,9 @@ rule("wdk.mof")
local wmimofck = nil
if arch == "x64" then
wmimofck = path.join(wdk.bindir, wdk.sdkver, "x64", "wmimofck.exe")
+ if not os.isexec(wmimofck) then
+ wmimofck = path.join(wdk.bindir, wdk.sdkver, "x86", "x64", "wmimofck.exe")
+ end
else
wmimofck = path.join(wdk.bindir, wdk.sdkver, "x86", "wmimofck.exe")
end