aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-09-25 15:45:55 -0400
committerRiccardo Spagni <ric@spagni.net>2019-09-25 15:45:56 -0400
commit1b23c05299da72a0e7c3c7981887f9f5e55e2fac (patch)
tree147b732415efa2cdf66c39aa1d3d4813d53b7519 /contrib
parentMerge pull request #5929 (diff)
parentDon't set ARCH_ID if it's already set (diff)
downloadmonero-1b23c05299da72a0e7c3c7981887f9f5e55e2fac.tar.xz
Merge pull request #5930
fcfa6665 Don't set ARCH_ID if it's already set (Howard Chu)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/depends/toolchain.cmake.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/depends/toolchain.cmake.in b/contrib/depends/toolchain.cmake.in
index 3be748ae7..ebe96b69c 100644
--- a/contrib/depends/toolchain.cmake.in
+++ b/contrib/depends/toolchain.cmake.in
@@ -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()