Skip to content

Commit

Permalink
Try cleaning archflags again
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Nov 9, 2023
1 parent 70bdde4 commit 4601e5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Define custom utilities
# Test for OSX with [ -n "$IS_MACOS" ]

function clean_arch_flags {
function clean_archflags {
# Clean up potential duplicate arch flags
if [[ $ARCH_FLAGS =~ "-arch arm64" ]]; then
export ARCH_FLAGS="-arch arm64"
elif [[ $ARCH_FLAGS =~ "-arch x86_64" ]]; then
export ARCH_FLAGS="-arch x86_64"
if [[ $ARCHFLAGS =~ "-arch arm64" ]]; then
export ARCHFLAGS="-arch arm64"
elif [[ $ARCHFLAGS =~ "-arch x86_64" ]]; then
export ARCHFLAGS="-arch x86_64"
fi
}

Expand All @@ -22,7 +22,7 @@ function pre_build {

function pip_wheel_cmd {
local abs_wheelhouse=$1
clean_arch_flags
clean_archflags
pip wheel $(pip_opts) -w $abs_wheelhouse --no-deps .
}

Expand Down

0 comments on commit 4601e5e

Please sign in to comment.