Skip to content

Commit

Permalink
Use mtune=generic instead of march
Browse files Browse the repository at this point in the history
  • Loading branch information
In-line authored Jul 10, 2017
1 parent 3244df1 commit c3e3a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3e3a36

Please sign in to comment.