diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2019-12-26 23:06:28 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2019-12-26 23:06:28 +0000 |
| commit | 7b6b882fe4cfae4a65f56139e4df6cfb97f72eb2 (patch) | |
| tree | f457d241f24ebb2cd3b2e346641b6284d49f6278 /lib/libcompiler_rt | |
| parent | 6795e26b8a77d9c954dfe811e4f5d7a2e529d987 (diff) | |
Notes
Diffstat (limited to 'lib/libcompiler_rt')
| -rw-r--r-- | lib/libcompiler_rt/Makefile.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libcompiler_rt/Makefile.inc b/lib/libcompiler_rt/Makefile.inc index 22b305c636bf..93c4896c4219 100644 --- a/lib/libcompiler_rt/Makefile.inc +++ b/lib/libcompiler_rt/Makefile.inc @@ -205,6 +205,14 @@ CFLAGS+= -DEMIT_SYNC_ATOMICS SRCF+= stdatomic .endif + +.if "${COMPILER_TYPE}" == "clang" && \ + (${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpcspe") +SRCS+= atomic.c +CFLAGS.atomic.c+= -Wno-atomic-alignment +.endif + + .for file in ${SRCF} .if ${MACHINE_ARCH:Marmv[67]*} && (!defined(CPUTYPE) || ${CPUTYPE:M*soft*} == "") \ && exists(${CRTSRC}/${CRTARCH}/${file}vfp.S) |
