git: 5ff5d1177bc6 - main - clang: Fix inverted condition in llvm.build.mk

Jessica Clarke jrtc27 at FreeBSD.org
Thu Aug 12 22:56:08 UTC 2021


The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=5ff5d1177bc66f1c2a0a6ee4d0ffa128d32e1dad

commit 5ff5d1177bc66f1c2a0a6ee4d0ffa128d32e1dad
Author:     Jessica Clarke <jrtc27 at FreeBSD.org>
AuthorDate: 2021-08-12 22:53:30 +0000
Commit:     Jessica Clarke <jrtc27 at FreeBSD.org>
CommitDate: 2021-08-12 22:53:30 +0000

    clang: Fix inverted condition in llvm.build.mk
    
    Fixes:          31ba4ce8898f ("Allow bootstrapping llvm-tblgen on macOS and Linux")
    MFC after:      1 week
---
 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 3a712cde1703..5aff7081fb76 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