]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
Build compiler-rt against libunwind, not libcxxrt
authorDimitry Andric <dim@FreeBSD.org>
Wed, 9 Mar 2022 21:23:35 +0000 (22:23 +0100)
committerDimitry Andric <dim@FreeBSD.org>
Thu, 17 Mar 2022 15:14:09 +0000 (16:14 +0100)
Parts of compiler-rt are also built for libgcc_eh and libgcc_s, and
these were already pointing to the libunwind unwind.h. For the sake of
consistency, also build compiler-rt itself against the libunwind
unwind.h, not the libcxxrt one.

Approved by: re (gjb)
MFC after: 3 days

(cherry picked from commit 7ecd99fa424df001028c5cddc52d25b29232f1af)
(cherry picked from commit 4c622a8f051d8dd9fab0719b00a6eccdbd13ac62)

lib/libcompiler_rt/Makefile

index b23522b7e4105fd4fe80187c17ec17c12258a6cb..0e9f58cc3fc0fbaa8ce11e2f57ab494847d838fd 100644 (file)
@@ -11,7 +11,7 @@ WARNS?=               2
 CFLAGS+=       ${PICFLAG}
 CFLAGS+=       -fvisibility=hidden
 CFLAGS+=       -DVISIBILITY_HIDDEN
-CFLAGS+=       -I${SRCTOP}/contrib/libcxxrt
+CFLAGS+=       -I${SRCTOP}/contrib/llvm-project/libunwind/include
 
 # gcc has incompatible internal declarations for __divtc3 and __multc3, but has
 # no option to silence its warning, so make warnings non-fatal.