From 95e8a7a663fd740f7a8cd01baa00ccd5ae42cef1 Mon Sep 17 00:00:00 2001 From: Altina Orion <139891033+Altina-oz@users.noreply.github.com> Date: Mon, 3 Jun 2024 15:12:23 +0800 Subject: [PATCH] Intel has changed its default path for icx: there is no "linux" anymore, for example: \\wsl.localhost\Ubuntu-24.04\opt\intel\oneapi\compiler\2024.1\bin --- xmake/modules/detect/sdks/find_icxenv.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/xmake/modules/detect/sdks/find_icxenv.lua b/xmake/modules/detect/sdks/find_icxenv.lua index 4e229341504..1757298271d 100644 --- a/xmake/modules/detect/sdks/find_icxenv.lua +++ b/xmake/modules/detect/sdks/find_icxenv.lua @@ -123,6 +123,7 @@ function _find_intel_on_linux(opt) paths = {} for _, rootdir in ipairs(oneapi_rootdirs) do table.insert(paths, path.join(rootdir, "*", is_host("macosx") and "mac" or "linux", "bin")) + table.insert(paths, path.join(rootdir, "*", "bin")) end if #paths > 0 then local icx = find_file("icx", paths)