git: 5ef9ae5c6d4f - stable/13 - clang: Fix inverted condition in llvm.build.mk
Jessica Clarke
jrtc27 at FreeBSD.org
Tue Sep 7 12:10:07 UTC 2021
The branch stable/13 has been updated by jrtc27:
URL: https://cgit.FreeBSD.org/src/commit/?id=5ef9ae5c6d4fb10f89f34c81418d7d16a4afb115
commit 5ef9ae5c6d4fb10f89f34c81418d7d16a4afb115
Author: Jessica Clarke <jrtc27 at FreeBSD.org>
AuthorDate: 2021-08-12 22:53:30 +0000
Commit: Jessica Clarke <jrtc27 at FreeBSD.org>
CommitDate: 2021-09-07 12:08:17 +0000
clang: Fix inverted condition in llvm.build.mk
Fixes: 31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
MFC after: 1 week
(cherry picked from commit 5ff5d1177bc66f1c2a0a6ee4d0ffa128d32e1dad)
---
lib/clang/llvm.build.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/clang/llvm.build.mk b/lib/clang/llvm.build.mk
index a909cd8e2c05..4e10e6c9af9e 100644
--- a/lib/clang/llvm.build.mk
+++ b/lib/clang/llvm.build.mk
@@ -111,10 +111,10 @@ CXXSTD?= c++14
CXXFLAGS+= -fno-exceptions
CXXFLAGS+= -fno-rtti
.if ${.MAKE.OS} == "FreeBSD" || !defined(BOOTSTRAPPING)
+CXXFLAGS.clang+= -stdlib=libc++
+.else
# Building on macOS/Linux needs the real sysctl() not the bootstrap tools stub.
CFLAGS+= -DBOOTSTRAPPING_WANT_NATIVE_SYSCTL
-.else
-CXXFLAGS.clang+= -stdlib=libc++
.endif
.if defined(BOOTSTRAPPING) && ${.MAKE.OS} == "Linux"
LIBADD+= dl
More information about the dev-commits-src-all
mailing list