-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update simpleaf to 0.19.0 * Update meta.yaml * Update build.sh * Update build.sh * Update build.sh --------- Co-authored-by: Rob Patro <rob-p@users.noreply.github.com>
- Loading branch information
1 parent
5665c74
commit 72ab8cc
Showing
2 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,33 @@ | ||
#!/bin/bash -euo | ||
|
||
export CFLAGS="${CFLAGS} -fcommon" | ||
export CXXFLAGS="${CFLAGS} -fcommon" | ||
|
||
if [ "$(uname)" == "Darwin" ]; then | ||
export CFLAGS="${CFLAGS} -fno-define-target-os-macros" | ||
export CXXFLAGS="${CXXFLAGS} -fno-define-target-os-macros" | ||
unamestr=`uname` | ||
|
||
if [ "$unamestr" == 'Darwin' ]; | ||
then | ||
if [[ $(uname -m) == 'x86_64' ]]; then | ||
echo "OSX x86-64: attempting to fix broken (old) SDK behavior" | ||
export CFLAGS="${CFLAGS} -D_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC -UHAVE_ALIGNED_ALLOC -D__APPLE__" | ||
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_HAS_NO_C11_ALIGNED_ALLOC -UHAVE_ALIGNED_ALLOC -D__APPLE__" | ||
fi | ||
export MACOSX_DEPLOYMENT_TARGET=10.15 | ||
export MACOSX_SDK_VERSION=10.15 | ||
export CFLAGS="${CFLAGS} -fcommon -D_LIBCPP_DISABLE_AVAILABILITY -fno-define-target-os-macros" | ||
export CXXFLAGS="${CXXFLAGS} -fcommon -D_LIBCPP_DISABLE_AVAILABILITY" | ||
fi | ||
|
||
# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details. | ||
# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct. | ||
export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo" | ||
export CARGO_NET_GIT_FETCH_WITH_CLI=true | ||
export CARGO_HOME="$(pwd)/.cargo" | ||
|
||
if [ "$unamestr" == 'Darwin' ]; | ||
then | ||
# build statically linked binary with Rust | ||
RUST_BACKTRACE=1 cargo install --locked --verbose --root $PREFIX --path . | ||
CONDA_BUILD=TRUE RUSTFLAGS="-C link-args=-Wl,-undefined,dynamic_lookup" RUST_BACKTRACE=1 cargo install -v -v -j 1 --locked --verbose --root $PREFIX --path . | ||
else | ||
# build statically linked binary with Rust | ||
CONDA_BUILD=TRUE RUSTFLAGS="-L $PREFIX/lib64" RUST_BACKTRACE=1 cargo install -v -v --locked --verbose --root $PREFIX --path . | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters