Skip to content

Commit 44a3dd7

Browse files
committed
Fix compiler flags
C++ compiler flags should be defined in macro CXX_FLAGS, otherwise they will be used when compiling C files, which will result in compilation errors. This happens when compiling the json library.
1 parent 7e30473 commit 44a3dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ TVOS_SIM_ARCHS=("x86_64" "arm64")
6666
MAC_CATALYST_ARCHS=("x86_64")
6767

6868
# Applied to all platforms
69-
CXX_FLAGS=""
69+
CXX_FLAGS="-std=c++14 -stdlib=libc++"
7070
LD_FLAGS=""
71-
OTHER_FLAGS="-std=c++14 -stdlib=libc++ -DNDEBUG"
71+
OTHER_FLAGS="-DNDEBUG"
7272

7373
XCODE_VERSION=$(xcrun xcodebuild -version | head -n1 | tr -Cd '[:digit:].')
7474
XCODE_ROOT=$(xcode-select -print-path)

0 commit comments

Comments
 (0)