mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Follow-up r364753 by enabling compiler-rt's atomic implementation only
for clang, as it uses clang specific builtins, and does not compile correctly with gcc. Note that gcc packages usually come with their own libatomic, providing these primitives. PR: 230888 MFC after: 3 days X-MFC-With: r364753
This commit is contained in:
parent
37d72a9177
commit
c90cb43503
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365509
|
@ -18,7 +18,6 @@ SRCF+= ashldi3
|
|||
SRCF+= ashlti3
|
||||
SRCF+= ashrdi3
|
||||
SRCF+= ashrti3
|
||||
SRCF+= atomic
|
||||
SRCF+= bswapdi2
|
||||
SRCF+= bswapsi2
|
||||
SRCF+= clear_cache
|
||||
|
@ -123,6 +122,12 @@ SRCF+= umoddi3
|
|||
SRCF+= umodsi3
|
||||
SRCF+= umodti3
|
||||
|
||||
# Enable compiler-rt's atomic implementation only for clang, as it uses clang
|
||||
# specific builtins, and gcc packages usually come with their own libatomic.
|
||||
.if "${COMPILER_TYPE}" == "clang"
|
||||
SRCF+= atomic
|
||||
.endif
|
||||
|
||||
# Avoid using SSE2 instructions on i386, if unsupported.
|
||||
.if ${MACHINE_CPUARCH} == "i386" && empty(MACHINE_CPU:Msse2)
|
||||
SRCS+= floatdidf.c
|
||||
|
|
Loading…
Reference in a new issue