Skip to content

Commit

Permalink
set PROTOBUF_USE_DLLS on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed May 27, 2023
1 parent 8f283fb commit 18444d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ fi
if [[ "${target_platform}" == osx-* ]]; then
# See https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
# protobuf switches definitions based on presence of this symbol, for details see
# https://github.com/protocolbuffers/protobuf/issues/12746#issuecomment-1546736962
CXXFLAGS="${CXXFLAGS} -DPROTOBUF_USE_DLLS"
fi

cmake -GNinja \
Expand Down

0 comments on commit 18444d1

Please sign in to comment.