From cda17d7b306640560991751cc84cff2a63c7f073 Mon Sep 17 00:00:00 2001 From: Tom Lin Date: Mon, 8 Mar 2021 20:19:44 +0000 Subject: [PATCH] Add -march=native --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e20485..5a85383 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,7 +72,7 @@ if (NOT DEFINED DEBUG_FLAGS) endif () if (NOT DEFINED RELEASE_FLAGS) # XXX switch on compiler type for the best default here, right now it's just GCC-compatible flags - set(RELEASE_FLAGS -O3) + set(RELEASE_FLAGS -O3 -march=native) endif () message(STATUS "Common ${CMAKE_BUILD_TYPE} flags are `${${BUILD_TYPE}_FLAGS}`, set ${BUILD_TYPE}_FLAGS to override")