Skip to content

Commit

Permalink
Merge pull request #1327 from Sonicadvance1/less_native
Browse files Browse the repository at this point in the history
Arm64: Don't fall back to native
  • Loading branch information
Sonicadvance1 authored Oct 22, 2021
2 parents e9937d9 + 0bfc1bb commit a3b39af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,6 @@ if(ENUM_ENUM_WARNING)
add_compile_options(-Wno-deprecated-enum-enum-conversion)
endif()

check_cxx_compiler_flag("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE)
if(COMPILER_SUPPORTS_MARCH_NATIVE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()

if(ENABLE_WERROR OR ENABLE_STRICT_WERROR)
add_compile_options(-Werror)
if (NOT ENABLE_STRICT_WERROR)
Expand Down Expand Up @@ -336,6 +331,11 @@ if(_M_ARM_64)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=${AARCH64_CPU}")
endif()
endif()
else()
check_cxx_compiler_flag("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE)
if(COMPILER_SUPPORTS_MARCH_NATIVE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
endif()
endif()

if (ENABLE_IWYU)
Expand Down
4 changes: 2 additions & 2 deletions Scripts/aarch64_fit_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
current_part = int(re.findall(r'0x[0-9A-F]+', line, re.I)[0], 16)
cpuinfo += {tuple([current_implementer, current_part])}

largest_big = "native"
largest_little = "native"
largest_big = "cortex-a57"
largest_little = "cortex-a53"

for core in cpuinfo:
if BigCoreIDs.get(core):
Expand Down

0 comments on commit a3b39af

Please sign in to comment.