diff options
| author | Jérôme Leclercq <[email protected]> | 2021-08-17 16:16:50 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-17 16:16:50 +0200 |
| commit | ec8fcf0e879c6b047195ceb2499d75d0350b7ff4 (patch) | |
| tree | 48f57ba94521980fe99222d738034211e623fafd /xmake/modules/package/tools/make.lua | |
| parent | a07938f51e94935fdf8d995969314e8296eaa619 (diff) | |
Update make.lua
Diffstat (limited to 'xmake/modules/package/tools/make.lua')
| -rw-r--r-- | xmake/modules/package/tools/make.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/package/tools/make.lua b/xmake/modules/package/tools/make.lua index 5c58d9de6..15158fad4 100644 --- a/xmake/modules/package/tools/make.lua +++ b/xmake/modules/package/tools/make.lua @@ -75,6 +75,11 @@ function buildenvs(package) end envs.ACLOCAL_PATH = path.joinenv(ACLOCAL_PATH) envs.PKG_CONFIG_PATH = path.joinenv(PKG_CONFIG_PATH) + -- some Makefile use ComSpec to detect Windows (e.g. Makefiles generated by Premake) and require this env + if is_subhost("windows") then + envs.ComSpec = os.getenv("ComSpec") + end + return envs end |
