File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ pushd build-cpp
7171echo CC=" ${CC} "
7272echo CFLAGS=" ${CFLAGS} "
7373
74+ # our compilers set `-DNDEBUG` in CPPFLAGS, but grpc does not seem to respect
75+ # this consistently; add it to CXXFLAGS as well to avoid any doubt, see
76+ # https://github.com/abseil/abseil-cpp/issues/1624#issuecomment-1968073823
77+ CXXFLAGS=" ${CXXFLAGS} -DNDEBUG"
78+
7479# point to right protoc
7580if [[ " $CONDA_BUILD_CROSS_COMPILATION " == 1 ]]; then
7681 export CMAKE_ARGS=" ${CMAKE_ARGS} -DProtobuf_PROTOC_EXECUTABLE=$BUILD_PREFIX /bin/protoc"
Original file line number Diff line number Diff line change 11#! /bin/bash
2+ set -ex
23
34export GRPC_BUILD_WITH_BORING_SSL_ASM=" "
45export GRPC_PYTHON_BUILD_SYSTEM_ABSL=" True"
2526ln -sf " $( which $CC ) " " $SRC_DIR /cc"
2627export PATH=" $SRC_DIR :$PATH "
2728
29+ # our compilers set `-DNDEBUG` in CPPFLAGS, but grpc does not seem to respect
30+ # this consistently; add it to CXXFLAGS as well to avoid any doubt, see
31+ # https://github.com/abseil/abseil-cpp/issues/1624#issuecomment-1968073823
32+ CXXFLAGS=" ${CXXFLAGS} -DNDEBUG"
33+
2834$PYTHON -m pip install . --no-deps --ignore-installed --no-cache-dir -v
You can’t perform that action at this time.
0 commit comments