From ec8fcf0e879c6b047195ceb2499d75d0350b7ff4 Mon Sep 17 00:00:00 2001 From: Jérôme Leclercq Date: Tue, 17 Aug 2021 16:16:50 +0200 Subject: Update make.lua --- xmake/modules/package/tools/make.lua | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.3.1