mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 14:44:15 -04:00
Don't set ARCH_ID if it's already set
Usually it's unset, but depends toolchain files set it explicitly for cross-compiling. Don't override preset values. But make sure it's set for all x86 / x86_64 builds, not just Linux. Also make sure -std=c++11 is set for Darwin builds, not all submodules were getting it consistently before.
This commit is contained in:
parent
faf5805fc0
commit
fcfa6665a9
2 changed files with 8 additions and 4 deletions
|
@ -104,12 +104,14 @@ if(ARCHITECTURE STREQUAL "riscv64")
|
|||
set(ARCH "rv64imafdc")
|
||||
endif()
|
||||
|
||||
if(ARCHITECTURE STREQUAL "i686" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
SET(LINUX_32 ON)
|
||||
if(ARCHITECTURE STREQUAL "i686")
|
||||
SET(ARCH_ID "i386")
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
SET(LINUX_32 ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ARCHITECTURE STREQUAL "x86_64" AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
if(ARCHITECTURE STREQUAL "x86_64")
|
||||
SET(ARCH_ID "x86_64")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue