Use correct path and bat for ifort 2021
@@ -100,8 +100,14 @@ function _find_intel_on_windows(opt)
opt = opt or {}
-- find ifortvars_bat.bat
- local paths = {"$(env IFORT_COMPILER20)"}
+ local paths = {os.getenv("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")}
+ ifortvars_bat = find_file("../../../setvars.bat", paths)
+ end
+
if ifortvars_bat then
-- load ifortvars_bat
