From 56506a5c6ed1db6e2d635fd10af0f3dd5e245fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 23 Jan 2019 23:47:33 +0200 Subject: [PATCH] Avoid warnings when building libcxxabi due to redefining _LIBCPP_BUILDING_LIBRARY Some libcxxabi source files define _LIBCPP_BUILDING_LIBRARY themselves. A "#define FOO" in a file defines it to "", while "-DFOO" on the command line defines it to "1". Define it on the command line using "-DFOO=" to make it match the #define within the source files. --- build-libcxx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-libcxx.sh b/build-libcxx.sh index 8665e3f..bc09e4c 100755 --- a/build-libcxx.sh +++ b/build-libcxx.sh @@ -134,7 +134,7 @@ build_all() { mkdir -p build-$arch-$type cd build-$arch-$type if [ "$type" = "shared" ]; then - LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS" + LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY= -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS" else LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS" fi