Skip to content

Commit

Permalink
Chage -march from native to default by default to produce portable bi…
Browse files Browse the repository at this point in the history
…naries (cryptonotefoundation#38)

* Chage -march from native to default by default

* Update core
  • Loading branch information
aivve authored Sep 17, 2020
1 parent 4b58469 commit a444204
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ set(CRYPTONOTE_SOURCES
cryptonote/external/miniupnpc/upnpreplyparse.c
cryptonote/src/Checkpoints/Checkpoints.cpp
cryptonote/src/Common/Base58.cpp
cryptonote/src/Common/Base64.cpp
cryptonote/src/Common/CommandLine.cpp
cryptonote/src/Common/FormatTools.cpp
cryptonote/src/Common/Util.cpp
Expand Down Expand Up @@ -357,7 +356,7 @@ elseif (UNIX)
endif()
list(REMOVE_ITEM HEADERS ${CMAKE_SOURCE_DIR}/src/gui/macdockiconhandler.h)

set(ARCH native CACHE STRING "CPU to build for: -march value or default to not pass -march at all")
set(ARCH default CACHE STRING "CPU to build for: -march value or default to not pass -march at all")
message(STATUS "Building on ${CMAKE_SYSTEM_PROCESSOR} for ${ARCH}")
if ("${ARCH}" STREQUAL "default")
set(ARCH_FLAG "")
Expand Down

0 comments on commit a444204

Please sign in to comment.