We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bc1eeb commit 3d49dd5Copy full SHA for 3d49dd5
test/clang_native.py
@@ -14,6 +14,15 @@
14
15
16
def get_native_triple():
17
+ # On Raspberry Pi 5, the target triple for native compilation must exactly
18
+ # match 'aarch64-linux-gnu', or clang will not find the native sysroot.
19
+ # Users on a Pi 5 can set environment variable
20
+ # EMTEST_NATIVE_COMPILATION_TRIPLE=aarch64-linux-gnu
21
+ # to be able to override the native triple for Pi 5 compilation.
22
+ native_compilation_triple = os.getenv('EMTEST_NATIVE_COMPILATION_TRIPLE')
23
+ if native_compilation_triple:
24
+ return native_compilation_triple
25
+
26
arch = {
27
'aarch64': 'arm64',
28
'arm64': 'arm64',
0 commit comments