diff options
| author | ruki <[email protected]> | 2026-03-30 23:39:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-03-30 23:39:29 +0800 |
| commit | de78ff8943c7b5a08c11c5dff4d14f31f34e0cb9 (patch) | |
| tree | 2f583292a0901fabf4be53432bb6bdc4dc6daf44 | |
| parent | 70e7db257cdb1a23b3fe5edcf216d9bd25dd8f5b (diff) | |
fix icx-cc
| -rw-r--r-- | xmake/modules/core/tools/icx.lua | 11 | ||||
| -rw-r--r-- | xmake/modules/core/tools/icx_cc.lua | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/xmake/modules/core/tools/icx.lua b/xmake/modules/core/tools/icx.lua index 43bf33721..f9464883e 100644 --- a/xmake/modules/core/tools/icx.lua +++ b/xmake/modules/core/tools/icx.lua @@ -15,8 +15,13 @@ -- Copyright (C) 2015-present, Xmake Open Source Community. -- -- @author ruki --- @file icc.lua +-- @file icx.lua -- --- inherit gcc -inherit("clang") +-- https://github.com/xmake-io/xmake/issues/7438 +-- https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/get-started-guide/2024-1/get-started-on-windows.html +if is_host("windows") then + inherit("clang_cl") +else + inherit("clang") +end diff --git a/xmake/modules/core/tools/icx_cc.lua b/xmake/modules/core/tools/icx_cc.lua index 19278863a..3023a617d 100644 --- a/xmake/modules/core/tools/icx_cc.lua +++ b/xmake/modules/core/tools/icx_cc.lua @@ -18,4 +18,5 @@ -- @file icx_cc.lua -- -inherit("clang_cl") +-- inherit icx (clang-compatible) +inherit("clang") |
