Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Modules/makesetup
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
# there's actually only one obj, so just set it to the lib
for lib in $libs
do
objs="target/\$(CARGO_TARGET_DIR)/$lib"
objs="target/\$(if \$(CARGO_TARGET),\$(CARGO_TARGET)/\$(CARGO_TARGET_DIR),\$(CARGO_TARGET_DIR))/$lib"
done
libs=
# depends on the headers through cpython-sys
Expand Down
10 changes: 9 additions & 1 deletion configure

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

9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -4333,6 +4333,15 @@ else
aarch64-apple-ios-simulator)
CARGO_TARGET="aarch64-apple-ios-sim"
;;
*-apple-darwin*)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably need to review config.guess and ensure that we cover ~all of the platforms it can generate (at least all of the tiered Python platforms to start with).

cargo_host="$host"
case "$cargo_host" in
arm64-apple-*)
cargo_host="aarch64${cargo_host#arm64}"
;;
esac
CARGO_TARGET="${cargo_host%%-apple-darwin*}-apple-darwin"
;;
*)
CARGO_TARGET="$host"
;;
Expand Down
Loading