Skip to content

CMake misclassifies IntelLLVM as GCC, causing unsupported warning and mitigation flags #1007

Description

@NLeeson

IntelLLVM is routed through GCC-only warning and Spectre-mitigation options.
With icx/icpx 2026.1.1, this fails under -Werror:

error: unknown warning option '-Wno-stringop-overflow'; did you mean '-Wno-shift-overflow'? [-Werror,-Wunknown-warning-option]

The GCC mitigation options also produce unsupported-option diagnostics.

Reproduction

Linux x86-64, CMake 4.4.3, compute-runtime commit
05b847e3d2e72a6d68813a876a29b852db28200d, with build dependencies installed:

cmake -S . -B build-icpx \
  -DCMAKE_C_COMPILER=icx \
  -DCMAKE_CXX_COMPILER=icpx \
  -DCMAKE_BUILD_TYPE=Release \
  -DNEO_SKIP_UNIT_TESTS=ON \
  -DNEO_DISABLE_LTO=ON
cmake --build build-icpx --target cpp_generate_tool -j2

Expected: compiler options compatible with IntelLLVM.

The fix in #1008 was validated with a successful full driver build.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions