summaryrefslogtreecommitdiff
path: root/tools/cmake.py
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-02-14 22:21:57 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2024-02-15 22:57:03 +0100
commit34ef1043ee1783f8ab20e74a8f883a235a96d629 (patch)
tree1bc5e49105e01d8961a9d1e5c65b887070f63616 /tools/cmake.py
parent7141bc487ec76c336fe1775d58771cecdb507957 (diff)
downloadfork-godot-webrtc-native-34ef1043ee1783f8ab20e74a8f883a235a96d629.tar.gz
fork-godot-webrtc-native-34ef1043ee1783f8ab20e74a8f883a235a96d629.tar.bz2
fork-godot-webrtc-native-34ef1043ee1783f8ab20e74a8f883a235a96d629.zip
[Linux] Add arm32/arm64 linux builds support
Fix arch detection in GDNative builds (3.x) and add a small patch to avoid warnings spam on ARM. Make CMake march flags explicit for Linux arm32/arm64. Add new platforms to CI.
Diffstat (limited to 'tools/cmake.py')
-rw-r--r--tools/cmake.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cmake.py b/tools/cmake.py
index 39957d8..2911011 100644
--- a/tools/cmake.py
+++ b/tools/cmake.py
@@ -37,6 +37,8 @@ def cmake_default_flags(env):
linux_flags = {
"x86_64": "-m64",
"x86_32": "-m32",
+ "arm32": "-march=armv7-a",
+ "arm64": "-march=armv8-a",
}.get(env["arch"], "")
if linux_flags:
config["CMAKE_C_FLAGS"] = linux_flags