We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7080469 commit 63ea057Copy full SHA for 63ea057
test/architectures/CMakeLists.txt
@@ -2,9 +2,11 @@ set(INTEL_PROCESSORS
2
knl knm skylake-avx512 cannonlake icelake-client
3
icelake-server cascadelake cooperlake tigerlake sapphirerapids alderlake
4
rocketlake graniterapids graniterapids-d znver4)
5
-set(CMAKE_CXX_FLAGS "")
+set(CMAKE_CXX_FLAGS "-Werror=unused-command-line-argument")
6
7
foreach(INTEL_PROCESSOR ${INTEL_PROCESSORS})
8
+ # Adding the werror here to choke if the -march is incompatible with the
9
+ # native one.
10
check_cxx_compiler_flag(-march=${INTEL_PROCESSOR} FLAG_SUPPORTED_${INTEL_PROCESSOR})
11
if(FLAG_SUPPORTED_${INTEL_PROCESSOR})
12
message(STATUS ${INTEL_PROCESSOR})
0 commit comments