Disable outline-atomics on AArch64

The routines __aarch64_* are defined in the static library libgcc.a
and not necessarily included in libCling or otherwise present in the
process, so the interpreter has a hard time finding them.

Fixes #12294
This commit is contained in:
Jonas Hahnfeld 2023-02-20 10:08:00 +01:00 committed by jenkins
parent e26c70ae49
commit e65614cb92

View File

@ -1254,6 +1254,13 @@ namespace {
#if __APPLE__ && __arm64__ #if __APPLE__ && __arm64__
argvCompile.push_back("--target=arm64-apple-darwin20.3.0"); argvCompile.push_back("--target=arm64-apple-darwin20.3.0");
#endif #endif
#if __aarch64__
// Disable outline-atomics on AArch64; the routines __aarch64_* are defined
// in the static library libgcc.a and not necessarily included in libCling
// or otherwise present in the process, so the interpreter has a hard time
// finding them.
argvCompile.push_back("-mno-outline-atomics");
#endif
// Variables for storing the memory of the C-string arguments. // Variables for storing the memory of the C-string arguments.
// FIXME: We shouldn't use C-strings in the first place, but just use // FIXME: We shouldn't use C-strings in the first place, but just use