--- a/targets/OSX/__init__.py Wed May 10 17:00:04 2023 +0200
+++ b/targets/OSX/__init__.py Wed May 10 17:02:05 2023 +0200
@@ -24,6 +24,7 @@
from ..toolchain_gcc import toolchain_gcc
class OSX_target(toolchain_gcc):
@@ -34,7 +35,7 @@
return toolchain_gcc.getBuilderCFLAGS(self) + \
["-fPIC", "-Wno-deprecated-declarations",
"-Wno-implicit-function-declaration", "-Wno-int-conversion",
- "-Wno-parentheses-equality", "-Wno-varargs"]
+ "-Wno-parentheses-equality", "-Wno-varargs", "-arch", platform.machine()] def getBuilderLDFLAGS(self):
- return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared"]
+ return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-arch", platform.machine()] --- a/targets/Win32/__init__.py Wed May 10 17:00:04 2023 +0200
+++ b/targets/Win32/__init__.py Wed May 10 17:02:05 2023 +0200
@@ -31,5 +31,9 @@
+ def getBuilderCFLAGS(self): + return toolchain_gcc.getBuilderCFLAGS(self) + \ + ["-Wno-implicit-function-declaration", "-Wno-int-conversion"] def getBuilderLDFLAGS(self):
return toolchain_gcc.getBuilderLDFLAGS(self) + ["-shared", "-lwinmm"]