From c130a785e4f6dbf222ac1e702837a2e3de89e691 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 6 Dec 2016 20:44:40 +0000 Subject: [PATCH] During the bootstrap phase, when building the minimal llvm library on PowerPC, add lib/Support/Atomic.cpp. This is needed because upstream llvm revision r271821 disabled the use of std::call_once, which causes some fallback functions from Atomic.cpp to be used instead. Reported by: Mark Millard PR: 214902 X-MFC-With: 309124 --- lib/clang/libllvmminimal/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/clang/libllvmminimal/Makefile b/lib/clang/libllvmminimal/Makefile index 7358d625b485..445e91e45cc4 100644 --- a/lib/clang/libllvmminimal/Makefile +++ b/lib/clang/libllvmminimal/Makefile @@ -7,6 +7,9 @@ INTERNALLIB= SRCDIR= lib SRCS+= Support/APInt.cpp +.if ${MACHINE_ARCH:Mpowerpc*} != "" +SRCS+= Support/Atomic.cpp +.endif SRCS+= Support/CommandLine.cpp SRCS+= Support/ConvertUTF.c SRCS+= Support/ConvertUTFWrapper.cpp