Ver Fonte

build: Allow to build for riscv64

Bernhard M. Wiedemann há 5 dias atrás
pai
commit
2759fb9606
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 3 0
      dtool/src/dtoolbase/dtool_platform.h
  2. 1 1
      makepanda/makepanda.py

+ 3 - 0
dtool/src/dtoolbase/dtool_platform.h

@@ -96,6 +96,9 @@
 #elif defined(__arm__)
 #elif defined(__arm__)
 #define DTOOL_PLATFORM "linux_arm"
 #define DTOOL_PLATFORM "linux_arm"
 
 
+#elif defined(__riscv)
+#define DTOOL_PLATFORM "linux_riscv"
+
 #elif defined(__ppc__)
 #elif defined(__ppc__)
 #define DTOOL_PLATFORM "linux_ppc"
 #define DTOOL_PLATFORM "linux_ppc"
 
 

+ 1 - 1
makepanda/makepanda.py

@@ -1427,7 +1427,7 @@ def CompileCxx(obj,src,opts):
                 if optlevel >= 4 or target == "android":
                 if optlevel >= 4 or target == "android":
                     cmd += " -fno-rtti"
                     cmd += " -fno-rtti"
 
 
-        if ('SSE2' in opts or not PkgSkip("SSE2")) and not arch.startswith("arm") and arch != 'aarch64':
+        if ('SSE2' in opts or not PkgSkip("SSE2")) and arch.find('86') > 0:
             if GetTarget() != "emscripten":
             if GetTarget() != "emscripten":
                 cmd += " -msse2"
                 cmd += " -msse2"