aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/CMakeLists.txt
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-03-05 12:40:06 +0200
committerRiccardo Spagni <ric@spagni.net>2019-03-05 12:40:06 +0200
commit39d7d3113bfe3655e721fa08b132d3b7fbcfb9b3 (patch)
tree01313a7ac6efed723a88e4063478539323fd556b /src/crypto/CMakeLists.txt
parentMerge pull request #5101 (diff)
parentCryptonightR: define out i386/x86_64 specific code on other archs (diff)
downloadmonero-39d7d3113bfe3655e721fa08b132d3b7fbcfb9b3.tar.xz
Merge pull request #5231
108c625b CryptonightR: define out i386/x86_64 specific code on other archs (moneromooo-monero) 1b8757dd slow-hash: fix build on arm (moneromooo-monero) 5057eb11 cmake: ARCH_ID fixes for cross compilation (TheCharlatan)
Diffstat (limited to 'src/crypto/CMakeLists.txt')
-rw-r--r--src/crypto/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crypto/CMakeLists.txt b/src/crypto/CMakeLists.txt
index 5ce43be22..6e774b8d5 100644
--- a/src/crypto/CMakeLists.txt
+++ b/src/crypto/CMakeLists.txt
@@ -46,9 +46,12 @@ set(crypto_sources
skein.c
slow-hash.c
CryptonightR_JIT.c
- CryptonightR_template.S
tree-hash.c)
+if(ARCH_ID STREQUAL "i386" OR ARCH_ID STREQUAL "x86_64" OR ARCH_ID STREQUAL "x86-64")
+list(APPEND crypto_sources CryptonightR_template.S)
+endif()
+
set(crypto_headers)
set(crypto_private_headers