libcxx: Make download+patch a separate target

So that it doesn't need to be done on every sethost.sh.
This commit is contained in:
YAMAMOTO Takashi 2020-10-23 07:57:19 +09:00 committed by Xiang Xiao
parent f0e0e6ab4d
commit dfa2949b69
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,7 @@
VERSION=11.0.0
$(TOPDIR)/include/libcxx:
libcxx:
$(Q) wget https://github.com/llvm/llvm-project/releases/download/llvmorg-$(VERSION)/libcxx-$(VERSION).src.tar.xz
$(Q) tar -xf libcxx-$(VERSION).src.tar.xz
$(Q) $(DELFILE) libcxx-$(VERSION).src.tar.xz
@ -30,6 +30,9 @@ $(TOPDIR)/include/libcxx:
$(Q) patch -p0 < 0001-libc-Fix-tests-failing-with-Clang-after-removing-GCC.patch
$(Q) patch -p0 < 0001-libcxx-Check-_LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE-fir.patch
$(Q) patch -p0 < 0001-libcxx-Port-to-NuttX-https-nuttx.apache.org-RTOS.patch
$(Q) touch $@
$(TOPDIR)/include/libcxx: libcxx
$(Q) $(DIRLINK) $(CURDIR)/libcxx/include $(TOPDIR)/include/libcxx
dirlinks:: $(TOPDIR)/include/libcxx