diff options
| author | ruki <[email protected]> | 2024-05-23 22:55:48 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-05-23 22:55:48 +0800 |
| commit | 537c5aacf5d0306a3ca786932737991c29e8ecc5 (patch) | |
| tree | ac0ed1b21c6af5c8426ebb303953de1633452f6a | |
| parent | c55ca98f52ea3dc5580506547aa0ceabf6c35ed7 (diff) | |
revert ifort
| -rw-r--r-- | xmake/modules/detect/sdks/find_ifortenv.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/modules/detect/sdks/find_ifortenv.lua b/xmake/modules/detect/sdks/find_ifortenv.lua index 2a6f937d4..7c9665506 100644 --- a/xmake/modules/detect/sdks/find_ifortenv.lua +++ b/xmake/modules/detect/sdks/find_ifortenv.lua @@ -53,11 +53,7 @@ function _load_ifortvars(ifortvars_bat, arch, opt) file:close() -- run genifortvars.bat - local oneapi_rootdir = os.getenv("ONEAPI_ROOT") - if not oneapi_rootdir then - oneapi_rootdir = path.directory(ifortvars_bat) - end - os.runv(genifortvars_bat, {envs = {ONEAPI_ROOT = oneapi_rootdir}}) + os.run(genifortvars_bat) -- load all envirnoment variables local variables = {} |
