--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ include_directories(fasttext) -set(CMAKE_CXX_FLAGS " -pthread -std=c++11 -funroll-loops -O3 -march=native") +set(CMAKE_CXX_FLAGS " -pthread -std=c++11 -funroll-loops -O3") set(HEADER_FILES src/args.h --- a/setup.py +++ b/setup.py @@ -75,8 +75,8 @@ FASTTEXT_SRC, ], language='c++', - extra_compile_args=["-O0 -fno-inline -fprofile-arcs -pthread -march=native" if coverage else - "-O3 -funroll-loops -pthread -march=native"], + extra_compile_args=["-O0 -fno-inline -fprofile-arcs -pthread" if coverage else + "-O3 -funroll-loops -pthread"], ), ]