Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump minimum macOS version from 10.13 to 10.14
Previously building the latest abseil-cpp would fail with: ``` [ 97%] Building CXX object absl/status/CMakeFiles/status.dir/status.cc.o /tmp/d20230909-93-us36r9/tmp/arm64-apple-darwin/ports/abseil/20230802.0/abseil-cpp-20230802.0/absl/status/status.cc:126:51: error: 'value' is unavailable: introduced in macOS 10.14 if (index.has_value()) return (*payloads)[index.value()].payload; ``` `absel::optional` is aliased to C++17's `std::optional`, but `value()` is only available in macOS 10.14 and up. By default, rake-compiler-dock sets the default macOS target to 10.13 (https://github.com/rake-compiler/rake-compiler-dock/blob/9fecf9137b433f2458d9110dc536985111d0ce39/build/mk_osxcross.sh#L28C64-L28C640. Note that I attempted to set `-mmacosx-version-min=10.14` via `-DCMAKE_CXX_FLAGS`. However, it appears we have to set `MACOSX_DEPLOYMENT_TARGET` or `-mmacosx-version-min=10.13` will be inserted after any user-defined flags.
- Loading branch information