From ed4fae3c936d136c329069e3ae4fa8799dec05ab Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Wed, 21 Jul 2021 20:00:23 +0900 Subject: [PATCH] libs/libxx/libcxx.defs: Fix build error on Windows platform The libcxx-X.Y.Z.src.tar.xz contains a symbolic link to a directory that not exist as below. `libcxx-X.Y.Z.src/test/std/pstl -> ../../../pstl/test/std` Linux and macOS environment have no problem, but it causes an error when extracting tarball on Windows platform. This symbolic link is not actually used, so exclude it from extracting the tarball. Change-Id: Ib01c8bdca04794c3ca3761e940cf3ab8d6361262 --- libs/libxx/libcxx.defs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libxx/libcxx.defs b/libs/libxx/libcxx.defs index 4fcb993483e..c72850ab582 100644 --- a/libs/libxx/libcxx.defs +++ b/libs/libxx/libcxx.defs @@ -24,7 +24,8 @@ VERSION=12.0.0 # $(Q) curl -O -L https://github.com/llvm/llvm-project/releases/download/llvmorg-$(VERSION)/libcxx-$(VERSION).src.tar.xz #libcxx: libcxx-$(VERSION).src.tar.xz -# $(Q) tar -xf libcxx-$(VERSION).src.tar.xz +# $(Q) tar -xf libcxx-$(VERSION).src.tar.xz \ +# --exclude libcxx-$(VERSION).src/test/std/pstl # $(Q) mv libcxx-$(VERSION).src libcxx # $(Q) touch $@