summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/detect/sdks/find_ifortenv.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/detect/sdks/find_ifortenv.lua b/xmake/modules/detect/sdks/find_ifortenv.lua
index 6d4b32b7d..42f29c6a0 100644
--- a/xmake/modules/detect/sdks/find_ifortenv.lua
+++ b/xmake/modules/detect/sdks/find_ifortenv.lua
@@ -100,11 +100,11 @@ function _find_intel_on_windows(opt)
opt = opt or {}
-- find ifortvars_bat.bat
- local paths = {os.getenv("IFORT_COMPILER20")}
+ local paths = {"$(env IFORT_COMPILER20)"}
local ifortvars_bat = find_file("bin/ifortvars.bat", paths)
-- look for setvars.bat which is new in 2021
if not ifortvars_bat then
- paths = {os.getenv("IFORT_COMPILER21")}
+ paths = {"$(env IFORT_COMPILER21)"}
ifortvars_bat = find_file("../../../setvars.bat", paths)
end