Skip to content

Commit

Permalink
universally use C++17 on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Aug 30, 2022
1 parent 50d6575 commit 18360fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ mkdir build_cmake
pushd build_cmake

export OPENSSL_ROOT_DIR=$PREFIX
if [[ "${target_platform}" == osx* ]] && [[ "${abseil_cpp}" == "20210324.2" ]]; then
export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_CXX_STANDARD=14"
else
export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_CXX_STANDARD=17"
fi
export CMAKE_ARGS="${CMAKE_ARGS} -DCMAKE_CXX_STANDARD=17"

# Overwrite location of protoc plugin to support cross-compilation
sed -ie "s;protoc-gen-grpc.*$;protoc-gen-grpc=${BUILD_PREFIX}/bin/grpc_cpp_plugin;g" ../cmake/CompileProtos.cmake
Expand Down

0 comments on commit 18360fe

Please sign in to comment.