这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
- '12.0'
MACOSX_SDK_VERSION:
- '10.14'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
- '12.0'
MACOSX_SDK_VERSION:
- '10.14'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
- '12.0'
MACOSX_SDK_VERSION:
- '10.14'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
- '12.0'
MACOSX_SDK_VERSION:
- '11.0'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
- '12.0'
MACOSX_SDK_VERSION:
- '11.0'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
- '12.0'
MACOSX_SDK_VERSION:
- '11.0'
- '13.3'
c_compiler:
- clang_bootstrap
c_compiler_version:
- '*'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '11.0'
- '12.0'
channel_sources:
- conda-forge
channel_targets:
Expand Down
8 changes: 2 additions & 6 deletions build-locally.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 6 additions & 8 deletions recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ if [[ "$target_platform" == osx-* ]]; then
export CXXFLAGS="$CXXFLAGS -isysroot $CONDA_BUILD_SYSROOT"
export LDFLAGS="$LDFLAGS -isysroot $CONDA_BUILD_SYSROOT -framework CoreFoundation"

export CMAKE_EXTRA_ARGS="-DCMAKE_OSX_SYSROOT=$CONDA_BUILD_SYSROOT -DLIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON"
export CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_OSX_SYSROOT=$CONDA_BUILD_SYSROOT"
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS=ON"
# we want to build against the system libcxxabi, not ship our own
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_CXX_ABI=system-libcxxabi"
export CMAKE_ARGS="$CMAKE_ARGS -DLIBCXX_CXX_ABI_INCLUDE_PATHS=$CONDA_BUILD_SYSROOT/usr/include/c++/v1"
fi

export CFLAGS="$CFLAGS -I$LLVM_PREFIX/include -I$BUILD_PREFIX/include"
Expand All @@ -29,16 +33,10 @@ cmake -G Ninja \
-DLIBCXX_HARDENING_MODE="${hardening}" \
-DLIBCXXABI_USE_LLVM_UNWINDER=OFF \
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=OFF \
$CMAKE_ARGS \
$CMAKE_EXTRA_ARGS
$CMAKE_ARGS

# Build
ninja -C build cxx cxxabi unwind

# Install
ninja -C build install-cxx install-cxxabi install-unwind

if [[ "$target_platform" == osx-* ]]; then
# on osx we point libc++ to the system libc++abi
$INSTALL_NAME_TOOL -change "@rpath/libc++abi.1.dylib" "/usr/lib/libc++abi.dylib" $PREFIX/lib/libc++.1.0.dylib
fi
5 changes: 3 additions & 2 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ dummy_var: # [osx]
- 0 # [osx and x86_64]
- 1 # [osx and arm64]

c_stdlib_version: # [osx]
- "12.0" # [osx]
MACOSX_SDK_VERSION: # [osx]
- "10.14" # [osx and x86_64]
- "11.0" # [osx and arm64]
- "13.3" # [osx]

c_stdlib_version: # [linux]
# upstream requires >=2.24, but we only have RHEL increments (2.17, 2.28, 2.34)
Expand Down
22 changes: 12 additions & 10 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ source:
- patches/0005-patch-__libcpp_tzdb_directory-to-allow-use-on-osx.patch

build:
number: 0
number: 1
skip: true # [win]
skip: true # [ppc64le or aarch64]

Expand Down Expand Up @@ -71,11 +71,11 @@ outputs:
test:
requires:
- clang # [osx]
- clangxx
- ld64 # [osx]
- cctools # [osx]
- llvm-tools # [osx]
- {{ compiler('cxx') }} # [not osx]
- clangxx # [not osx]
files:
- test_sources
- compile_test.sh # [unix]
Expand Down Expand Up @@ -111,19 +111,11 @@ outputs:
- test -d $PREFIX/share/libc++ # [unix]
- test -f $PREFIX/lib/libc++.modules.json # [unix]


# Following 2 projects had issues with libc++, so check them
# before releasing just to be sure.
downstreams: # [osx]
- python-symengine # [osx]
- openturns # [osx]
# test current libcxx against old clang builds;
# version correspondence is 0.{{ CLANG_MAJOR }}
# these tests are unusual in that they use -Wl,-rpath, but not -L.
- libcxx-testing 0.19 # [osx]
- libcxx-testing 0.18 # [osx]
- libcxx-testing 0.17 # [osx]
- libcxx-testing 0.16 # [osx]
{% endif %}

- name: libcxx
Expand Down Expand Up @@ -169,6 +161,16 @@ outputs:
# absence of headers
- test ! -d $PREFIX/include/c++ # [unix]

downstreams: # [osx]
# test current libcxx against old clang builds;
# version correspondence is 0.{{ CLANG_MAJOR }}
# these tests are unusual in that they use -Wl,-rpath, but not -L.
- libcxx-testing 0.20 # [osx]
- libcxx-testing 0.19 # [osx]
- libcxx-testing 0.18 # [osx]
- libcxx-testing 0.17 # [osx]
- libcxx-testing 0.16 # [osx]

- name: libcxxabi
build:
skip: true # [not linux]
Expand Down
Loading