Selaa lähdekoodia

set ZT_AES_NEON for arm64

Grant Limberg 1 viikko sitten
vanhempi
commit
d31b3a08db
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 2 2
      CMakeLists.txt
  2. 2 0
      nonfree/controller/BigTableStatusWriter.cpp

+ 2 - 2
CMakeLists.txt

@@ -20,7 +20,7 @@ if(CPU_ARCHITECTURE STREQUAL "x86_64")
         -DZT_USE_FAST_X64_ED25519=1
     )
 elseif(CPU_ARCHITECTURE STREQUAL "aarch64")
-    add_definitions(-DZT_ARCHITECTURE=4 -DZT_ARCH_ARM_HAS_NEON=1 -DZT_SSO_SUPPORTED=1)
+    add_definitions(-DZT_ARCHITECTURE=4 -DZT_ARCH_ARM_HAS_NEON=1 -DZT_SSO_SUPPORTED=1 -DZT_AES_NEON=1)
     add_compile_options(-march=armv8-a+crypto -mtune=generic -mstrict-align)
 endif()
 
@@ -132,4 +132,4 @@ target_link_libraries(zerotier-selftest
     Threads::Threads
     nlohmann_json::nlohmann_json 
     prometheus-cpp-lite
-    Threads::Threads)
+    Threads::Threads)

+ 2 - 0
nonfree/controller/BigTableStatusWriter.cpp

@@ -1,5 +1,7 @@
 #include "BigTableStatusWriter.hpp"
 
+#include "ControllerConfig.hpp"
+
 #include <google/cloud/bigtable/mutations.h>
 #include <google/cloud/bigtable/row.h>
 #include <google/cloud/bigtable/table.h>