Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/clang_native.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@


def get_native_triple():
# On Raspberry Pi 5, the target triple for native compilation must exactly
# match 'aarch64-linux-gnu', or clang will not find the native sysroot.
# Users on a Pi 5 can set environment variable
# EMTEST_NATIVE_COMPILATION_TRIPLE=aarch64-linux-gnu
# to be able to override the native triple for Pi 5 compilation.
native_compilation_triple = os.getenv('EMTEST_NATIVE_COMPILATION_TRIPLE')
if native_compilation_triple:
return native_compilation_triple

arch = {
'aarch64': 'arm64',
'arm64': 'arm64',
Expand Down