summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-23 23:00:06 +0800
committerruki <[email protected]>2024-05-23 23:00:06 +0800
commitbe0dfd9660593047612afbad24a1c637c5883655 (patch)
tree3de263355bb1d6fae6e3525f7957460101402cdd
parentdc2e263f79ecd7c71662cae167767594a5420689 (diff)
fix ifort env
-rw-r--r--xmake/toolchains/icx/load.lua2
-rw-r--r--xmake/toolchains/ifort/load.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/toolchains/icx/load.lua b/xmake/toolchains/icx/load.lua
index f20ca31de..0e7d2a685 100644
--- a/xmake/toolchains/icx/load.lua
+++ b/xmake/toolchains/icx/load.lua
@@ -61,7 +61,7 @@ function _add_icxenv(toolchain, name, curenvs)
local icxenv = icxvarsall[arch] or {}
-- get the paths for the icx environment
- local new = icxvarsall[name]
+ local new = icxenv[name]
if new then
-- fix case naming conflict for cmake/msbuild between the new msvc envs and current environment, if we are running xmake in vs prompt.
-- @see https://github.com/xmake-io/xmake/issues/4751
diff --git a/xmake/toolchains/ifort/load.lua b/xmake/toolchains/ifort/load.lua
index 8eb616475..2dadba240 100644
--- a/xmake/toolchains/ifort/load.lua
+++ b/xmake/toolchains/ifort/load.lua
@@ -61,7 +61,7 @@ function _add_ifortenv(toolchain, name, curenvs)
local ifortenv = ifortvarsall[arch] or {}
-- get the paths for the ifort environment
- local new = ifortvarsall[name]
+ local new = ifortenv[name]
if new then
-- fix case naming conflict for cmake/msbuild between the new msvc envs and current environment, if we are running xmake in vs prompt.
-- @see https://github.com/xmake-io/xmake/issues/4751