diff options
Diffstat (limited to 'src/cmake/cpu.cmake')
-rw-r--r-- | src/cmake/cpu.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmake/cpu.cmake b/src/cmake/cpu.cmake index 37bc24c09b5..b3f9f0e4330 100644 --- a/src/cmake/cpu.cmake +++ b/src/cmake/cpu.cmake @@ -80,6 +80,10 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*") if(compiler_flag_march_haswell) list(APPEND MARCH_VARIANTS "hsw\;-march=haswell -mtune=haswell") endif() + check_c_compiler_flag("-march=tremont" compiler_flag_march_tremont) + if(compiler_flag_march_tremont) + list(APPEND MARCH_VARIANTS "trm\;-march=tremont -mtune=tremont") + endif() if (GNU_ASSEMBLER_AVX512_BUG) message(WARNING "AVX-512 multiarch variant(s) disabled due to GNU Assembler bug") else() |