diff options
author | deshevoy <deshevoy@yandex-team.com> | 2024-07-13 14:20:01 +0300 |
---|---|---|
committer | deshevoy <deshevoy@yandex-team.com> | 2024-07-13 14:30:37 +0300 |
commit | 5c685c219a8601139af8cfdc5e0c69a3c6b0e9a6 (patch) | |
tree | 96f1f51c6220a01cdc5354a5326f5046c05afc83 | |
parent | d3d76f92c714b9c76ed5e646b377a861fa6570a5 (diff) | |
download | ydb-5c685c219a8601139af8cfdc5e0c69a3c6b0e9a6.tar.gz |
[build] Disable outline atomics in clang
270eddbda7a235d324c0b23da3e88bafeb8305ef
-rw-r--r-- | build/conf/compilers/gnu_compiler.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf index 6595e1ca1c..9781f752f6 100644 --- a/build/conf/compilers/gnu_compiler.conf +++ b/build/conf/compilers/gnu_compiler.conf @@ -54,6 +54,12 @@ elsewhen ($PIE == "yes") { LDFLAGS+=-fPIE -pie } +when ($CLANG == "yes" && $ARCH_AARCH64 == "yes") { + # Clang generates outline atomics if libgcc version is >= 9.3.1 + # See https://github.com/llvm/llvm-project/commit/c5e7e649d537067dec7111f3de1430d0fc8a4d11 + CFLAGS+=-mno-outline-atomics +} + when ($CLANG16 == "yes") { CFLAGS+=-Wno-array-parameter -Wno-deprecate-lax-vec-conv-all -Wno-unqualified-std-cast-call -Wno-unused-but-set-parameter -Wno-implicit-function-declaration -Wno-int-conversion -Wno-incompatible-function-pointer-types -Wno-address-of-packed-member } |