diff options
| author | ruki <[email protected]> | 2018-10-15 22:56:15 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-10-15 11:37:31 +0800 |
| commit | 1061b681604cc1739c65849624866732e59ce9e7 (patch) | |
| tree | 89d4179bb481572fe8b137ee791181c4907b07e1 /xmake/modules/detect/tools/find_rc.lua | |
| parent | 254c4084d7cbf9882d9b09da049ae5d06b491654 (diff) | |
improve find_rc again
Diffstat (limited to 'xmake/modules/detect/tools/find_rc.lua')
| -rw-r--r-- | xmake/modules/detect/tools/find_rc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_rc.lua b/xmake/modules/detect/tools/find_rc.lua index ae2e17284..2c4ef6f98 100644 --- a/xmake/modules/detect/tools/find_rc.lua +++ b/xmake/modules/detect/tools/find_rc.lua @@ -59,8 +59,8 @@ function main(opt) local arch = opt.arch or config.arch() or os.arch() local vcvarsall = config.get("__vcvarsall") if vcvarsall then - local vcvars = vcvarsall[arch] or {} - if vcvars.WindowsSdkDir and vcvars.WindowsSDKVersion then + local vcvars = vcvarsall[arch] + if vcvars and vcvars.WindowsSdkDir and vcvars.WindowsSDKVersion then local bindir = path.join(vcvars.WindowsSdkDir, "bin", vcvars.WindowsSDKVersion, arch) if os.isdir(bindir) then opt.pathes = opt.pathes or {} |
