From 17b9bbac04cbcfbe456ad66d36a1020bc38184b9 Mon Sep 17 00:00:00 2001 From: Rob Patro Date: Tue, 24 Dec 2024 01:43:02 -0500 Subject: [PATCH] Update build.sh --- recipes/alevin-fry/build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/alevin-fry/build.sh b/recipes/alevin-fry/build.sh index be24ecc64d3c6..d4e917195b650 100644 --- a/recipes/alevin-fry/build.sh +++ b/recipes/alevin-fry/build.sh @@ -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"