Skip to content

fix clang-cl warning for /constexpr:steps500000000#18

Merged
sebsjames merged 1 commit intosebsjames:mainfrom
miyanyan:fix-clang-cl-warning
Jul 14, 2025
Merged

fix clang-cl warning for /constexpr:steps500000000#18
sebsjames merged 1 commit intosebsjames:mainfrom
miyanyan:fix-clang-cl-warning

Conversation

@miyanyan
Copy link
Copy Markdown
Contributor

on windows, there are Clang GNU CLI and CLang MSVC CLI, the Clang GNU CLI works fine, but CLang MSVC CLI doesn't have all the option as MSVC, it will generate these warnings:

[build] [18/178   0% :: 0.880] Building CXX object tests\CMakeFiles\testarray_asmapkey.dir\testarray_asmapkey.cpp.obj
[build] clang-cl: warning: argument unused during compilation: '/constexpr:steps500000000' [-Wunused-command-line-argument]
[build] [19/178   1% :: 1.066] Building CXX object tests\CMakeFiles\testQuat_constexpr.dir\testQuat_constexpr.cpp.obj
[build] clang-cl: warning: argument unused during compilation: '/constexpr:steps500000000' [-Wunused-command-line-argument]
[build] [20/178   1% :: 1.079] Building CXX object tests\CMakeFiles\testvec_asunordmapkey.dir\testvec_asunordmapkey.cpp.obj
[build] clang-cl: warning: argument unused during compilation: '/constexpr:steps500000000' [-Wunused-command-line-argument]

see https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_FRONTEND_VARIANT.html, I update the cmake version to >= 3.14

@sebsjames
Copy link
Copy Markdown
Owner

This change looks fine. I'll merge once the CI completes.

@sebsjames sebsjames merged commit 099810d into sebsjames:main Jul 14, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants