summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorPucklaMotzer09 <[email protected]>2021-12-07 14:32:47 +0100
committerPucklaMotzer09 <[email protected]>2021-12-07 14:32:47 +0100
commit9ba620afb2edd9af07f84cc9cdbcd06b39dde29b (patch)
tree7c2ed6258d62c1a28ac1c0e16c46df969f05a0ce /xmake/modules
parentb17b42b8130a7b736c2668cc37445234c9e8301f (diff)
Use $(env ) instead of os.getenv()
Diffstat (limited to 'xmake/modules')
-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