Skip to content

Commit dd67ce7

Browse files
committed
Incorporate #275
1 parent ee79003 commit dd67ce7

8 files changed

+23
-16
lines changed

.ci_support/osx_64_.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MACOSX_DEPLOYMENT_TARGET:
22
- '11.0'
33
MACOSX_SDK_VERSION:
4-
- '11.0'
4+
- '13.3'
55
c_compiler:
66
- clang
77
c_compiler_version:

.github/scripts/nightly/update-feedstock.sh

-4
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,5 @@ sed -i \
1616
s/"tiledb rc"/"tiledb nightlies"/ \
1717
recipe/conda_build_config.yaml
1818

19-
# Apply patch from Xanthos to support C++20
20-
# https://github.com/TileDB-Inc/tiledbsoma-feedstock/pull/246
21-
patch -p1 < .github/scripts/nightly/cpp20.patch
22-
2319
# Print differences
2420
git --no-pager diff conda-forge.yml recipe/conda_build_config.yaml

recipe/build-libtiledbsoma.sh

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
set -exo pipefail
44

5+
# Clear default compiler flags
6+
export CXXFLAGS=${CXXFLAGS//"-fvisibility-inlines-hidden"/}
7+
58
mkdir libtiledbsoma-build && cd libtiledbsoma-build
69

710
cmake \

recipe/build-r-tiledbsoma.sh

+13-6
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,28 @@ set -ex
44

55
cd apis/r
66

7+
# Clear default compiler flags
8+
export CXXFLAGS=${CXXFLAGS//"-fvisibility-inlines-hidden"/}
9+
710
export DISABLE_AUTOBREW=1
811

912
# https://github.com/conda-forge/r-tiledb-feedstock/commit/29cb6816636e7b5b58545e1407a8f0c29ff9dc39
10-
if [[ $target_platform == osx-64 ]]; then
13+
if [[ $target_platform == osx-* ]]; then
1114
export NN_CXX_ORIG=$CXX
1215
export NN_CC_ORIG=$CC
1316
export CXX=$RECIPE_DIR/cxx_wrap.sh
1417
export CC=$RECIPE_DIR/cc_wrap.sh
15-
mkdir -p ~/.R
16-
echo CC=$RECIPE_DIR/cc_wrap.sh > ~/.R/Makevars
17-
echo CXX=$RECIPE_DIR/cxx_wrap.sh >> ~/.R/Makevars
18-
echo CXX17=$RECIPE_DIR/cxx_wrap.sh >> ~/.R/Makevars
1918
fi
2019

21-
export CXX17FLAGS="-Wno-deprecated-declarations -Wno-deprecated"
20+
export CXX="$CXX -std=c++20 -fPIC"
21+
export CXX20="$CXX"
22+
23+
mkdir -p ~/.R
24+
echo CC="$CC" > ~/.R/Makevars
25+
echo CXX="$CXX" >> ~/.R/Makevars
26+
echo CXX20="$CXX20" >> ~/.R/Makevars
27+
28+
export CXX20FLAGS="-Wno-deprecated-declarations -Wno-deprecated"
2229

2330
# https://conda-forge.org/docs/maintainer/knowledge_base/#newer-c-features-with-old-sdk
2431
if [[ $target_platform == osx-* ]]; then

recipe/build-tiledbsoma-py.sh

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ set -ex
44

55
cd apis/python
66

7+
# Clear default compiler flags
8+
export CXXFLAGS=${CXXFLAGS//"-fvisibility-inlines-hidden"/}
9+
710
echo
811
echo "PKG_VERSION IS <<$PKG_VERSION>>"
912
echo

recipe/cc_wrap.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22

3-
args="${@##-mmacosx-version-min=10.9*}"
4-
$NN_CC_ORIG $args -mmacosx-version-min=11.0
3+
$NN_CC_ORIG "$@" -mmacosx-version-min=13.3

recipe/conda_build_config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://conda-forge.org/docs/maintainer/knowledge_base/#requiring-newer-macos-sdks
22
# https://conda-forge.org/news/2024/03/24/stdlib-migration/
33
MACOSX_SDK_VERSION: # [osx and x86_64]
4-
- 11.0 # [osx and x86_64]
4+
- 13.3 # [osx and x86_64]
55
c_stdlib_version: # [osx and x86_64]
66
- 11.0 # [osx and x86_64]
77
channel_sources:

recipe/cxx_wrap.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22

3-
args="${@##-mmacosx-version-min=10.9*}"
4-
$NN_CXX_ORIG $args -mmacosx-version-min=11.0
3+
$NN_CXX_ORIG "$@" -mmacosx-version-min=13.3

0 commit comments

Comments
 (0)