Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p authored Dec 24, 2024
1 parent 02958a9 commit 17b9bba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/alevin-fry/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
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"
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"
Expand Down

0 comments on commit 17b9bba

Please sign in to comment.