From de78ff8943c7b5a08c11c5dff4d14f31f34e0cb9 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 30 Mar 2026 23:39:29 +0800 Subject: fix icx-cc --- xmake/modules/core/tools/icx.lua | 11 ++++++++--- 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") -- cgit v1.3.1