Skip to content

Commit

Permalink
build_prpotobuf.sh: set visibility to hidden.
Browse files Browse the repository at this point in the history
Bring in line with the compilation of all other linked code to prevent
warnings.
  • Loading branch information
ashdnazg committed Dec 21, 2023
1 parent 3df4322 commit e6f9318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ IPHONESIMULATOR_PLATFORM=$(xcrun --sdk iphonesimulator --show-sdk-platform-path)
IPHONESIMULATOR_SYSROOT=$(xcrun --sdk iphonesimulator --show-sdk-path)

CC=clang
CFLAGS="-DNDEBUG -DGOOGLE_PROTOBUF_RUNTIME_INCLUDE_BASE=\\\"libprotobuf-lite/\\\" -Os -pipe -fPIC -fno-exceptions"
CFLAGS="-DNDEBUG -DGOOGLE_PROTOBUF_RUNTIME_INCLUDE_BASE=\\\"libprotobuf-lite/\\\" -Os -pipe -fPIC -fno-exceptions -fvisibility-inlines-hidden -fvisibility=hidden"
CXX=clang
CXXFLAGS="${CFLAGS} -std=c++11 -stdlib=libc++"
LDFLAGS="-stdlib=libc++"
Expand Down

0 comments on commit e6f9318

Please sign in to comment.