From c3e3a36453bc79e4886ea293a6539cf07f4fbc3e Mon Sep 17 00:00:00 2001 From: In-line Date: Mon, 10 Jul 2017 22:01:29 +0400 Subject: [PATCH] Use mtune=generic instead of march --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 397e524..21f3b7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ add_subdirectory(test) file(GLOB_RECURSE SOURCE_FILES ${SRC_DIR}/*.h ${SRC_DIR}/*.cpp) add_library(${PROJECT_NAME} SHARED ${SRC_LIST} ${SOURCE_FILES}) -set(FLAGS "-m32 -O2 -march=sandybridge -fvisibility=hidden -flto -fPIC") +set(FLAGS "-m32 -O2 -mtune=generic -fvisibility=hidden -flto -fPIC") set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "${FLAGS} -fdata-sections -ffunction-sections" LINK_FLAGS "${FLAGS} -static-libgcc -static-libstdc++ -s -Wl,--version-script=${CMAKE_SOURCE_DIR}/version_script.lds -Wl,--gc-sections") target_compile_features(${PROJECT_NAME} PRIVATE cxx_range_for)