diff options
| author | ruki <[email protected]> | 2017-06-01 10:45:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-06-01 10:45:02 +0800 |
| commit | 95a3f4499e5fb575613b4192519a53d323a7a19c (patch) | |
| tree | 4d0f1b48eb8fd186cc832a81941b1a804f7269c0 /xmake/modules/detect/tool/find_vsjitdebugger.lua | |
| parent | f5fd7001a09b782c3aa2263738a07c38d7ddc351 (diff) | |
rename get api to val and fix get sandbox instance
Diffstat (limited to 'xmake/modules/detect/tool/find_vsjitdebugger.lua')
| -rw-r--r-- | xmake/modules/detect/tool/find_vsjitdebugger.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tool/find_vsjitdebugger.lua b/xmake/modules/detect/tool/find_vsjitdebugger.lua index 8aed63fb9..922d3fdf3 100644 --- a/xmake/modules/detect/tool/find_vsjitdebugger.lua +++ b/xmake/modules/detect/tool/find_vsjitdebugger.lua @@ -51,7 +51,7 @@ function main(opt) opt = opt or {} -- find program - return find_program(opt.program or "vsjitdebugger", {"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger]", - "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger]"} + return find_program(opt.program or "vsjitdebugger", {"$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger)", + "$(reg HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug;Debugger)"} , function (program) if not os.isfile(program) then raise() end end) end |
