Skip to content

Commit

Permalink
Add _LIBCPP_DISABLE_AVAILABILITY to CXXFLAGS for MacOS
Browse files Browse the repository at this point in the history
Should fix:
2024-02-08T03:10:27.1347000Z /Users/runner/miniforge3/conda-bld/eccodes_1707361444396/work/src/grib_accessor_class_step_in_units.cc:226:42: error: 'value' is unavailable: introduced in macOS 10.13 - see https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
  • Loading branch information
iainrussell authored Feb 8, 2024
1 parent 3c4cd16 commit 8217567
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 @@ -13,6 +13,9 @@ export EXTRA_TESTS=1
if [[ $HOST =~ darwin ]]; then
export LIBRARY_SEARCH_VAR=DYLD_FALLBACK_LIBRARY_PATH
export FFLAGS="-isysroot $CONDA_BUILD_SYSROOT $FFLAGS"
# https://conda-forge.org/docs/maintainer/knowledge_base.html#newer-c-features-with-old-sdk
# (to fix grib_accessor_class_step_in_units.cc:226:42: error: 'value' is unavailable: introduced in macOS 10.13)
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
export REPLACE_TPL_ABSOLUTE_PATHS=1
if [[ $HOST =~ arm64 ]]; then
export MACOS_LE_FLAG="-D IEEE_LE=1"
Expand Down

0 comments on commit 8217567

Please sign in to comment.