]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
cmake: drop "-march=native" from CXX_FLAGS wip-no-march-native
authorKefu Chai <kchai@redhat.com>
Fri, 28 Oct 2016 10:47:54 +0000 (18:47 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Oct 2016 10:47:56 +0000 (18:47 +0800)
this breaks the cross-compiling, and we can not assume that the building
machine and the target machine share the same CPU spec.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index 6c3a012f44fa7eee05e91e9d818a1935c27dd151..9db7f96cde669abc94a0f7edeaddcea78125f072 100644 (file)
@@ -91,7 +91,7 @@ else()
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wextra -Wall -Werror")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wsign-compare -Wshadow -Wno-unused-parameter -Wno-unused-variable -Woverloaded-virtual -Wnon-virtual-dtor -Wno-missing-field-initializers")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native -fno-omit-frame-pointer -momit-leaf-frame-pointer")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer -momit-leaf-frame-pointer")
 endif()
 
 option(WITH_ASAN "build with ASAN" OFF)