Skip to content

Commit 56506a5

Browse files
committed
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.
1 parent a0d10c5 commit 56506a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-libcxx.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ build_all() {
134134
mkdir -p build-$arch-$type
135135
cd build-$arch-$type
136136
if [ "$type" = "shared" ]; then
137-
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS"
137+
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_BUILDING_LIBRARY= -U_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS"
138138
else
139139
LIBCXXABI_VISIBILITY_FLAGS="-D_LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS"
140140
fi

0 commit comments

Comments
 (0)