Skip to content

Commit

Permalink
When testing for architecture flag, make sure those flags are not ign…
Browse files Browse the repository at this point in the history
…ored

Fix #999
  • Loading branch information
serge-sans-paille committed Mar 20, 2024
1 parent 7080469 commit 63ea057
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/architectures/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ set(INTEL_PROCESSORS
knl knm skylake-avx512 cannonlake icelake-client
icelake-server cascadelake cooperlake tigerlake sapphirerapids alderlake
rocketlake graniterapids graniterapids-d znver4)
set(CMAKE_CXX_FLAGS "")
set(CMAKE_CXX_FLAGS "-Werror=unused-command-line-argument")

foreach(INTEL_PROCESSOR ${INTEL_PROCESSORS})
# Adding the werror here to choke if the -march is incompatible with the
# native one.
check_cxx_compiler_flag(-march=${INTEL_PROCESSOR} FLAG_SUPPORTED_${INTEL_PROCESSOR})
if(FLAG_SUPPORTED_${INTEL_PROCESSOR})
message(STATUS ${INTEL_PROCESSOR})
Expand Down

0 comments on commit 63ea057

Please sign in to comment.