]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/platform.hpp
Put brackets around ipv6 addresses in `inet6 present`
[factor.git] / vm / platform.hpp
index 8c0ec7887c578ab78707a9e9a85a9f6baf46bcb0..c3ae476345844b8eb6320e7f2b144114e67e979e 100644 (file)
@@ -22,6 +22,8 @@
       #include "os-macosx-x86.32.hpp"
     #elif defined(FACTOR_AMD64)
       #include "os-macosx-x86.64.hpp"
+    #elif defined(FACTOR_ARM64)
+      #include "os-macosx-arm64.hpp"
     #else
       #error "Unsupported Mac OS X flavor"
     #endif
     #if defined(__FreeBSD__)
        #define FACTOR_OS_STRING "freebsd"
        #include "os-freebsd.hpp"
-       #include "os-freebsd-x86.64.hpp"
+        #if defined(FACTOR_X86)
+           #include "os-freebsd-x86.32.hpp"
+        #elif defined(FACTOR_AMD64)
+           #include "os-freebsd-x86.64.hpp"
+        #else
+            #error "Unsupported FreeBSD flavor"
+        #endif
     #elif defined(__linux__)
       #define FACTOR_OS_STRING "linux"
       #include "os-linux.hpp"
@@ -42,6 +50,8 @@
         #include "os-linux-ppc.32.hpp"
       #elif defined(FACTOR_ARM)
         #include "os-linux-arm.hpp"
+      #elif defined(FACTOR_ARM64)
+        #include "os-linux-arm.64.hpp"
       #elif defined(FACTOR_AMD64)
         #include "os-linux-x86.64.hpp"
       #else
@@ -61,6 +71,9 @@
   #include "cpu-ppc.hpp"
 #elif defined(FACTOR_ARM)
   #include "cpu-arm.hpp"
+#elif defined(FACTOR_ARM64)
+  #include "cpu-arm.64.hpp"
+  #include "cpu-arm.hpp"
 #else
   #error "Unsupported CPU"
 #endif