-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass
-target
in addition to -arch
in compiling commands in Apple
crosstool This allows using this crosstool file for cross-compiling from non-Apple host platforms. On macOS, `-arch <arch>` and `-m<platform>-version-min=<version_min>` will be expanded to `-triple <arch>-apple-<platform><version_min>` in the frontend invocation, but on a Linux host, without `-target`, the expanded triple flags would be `-triple <arch>-pc-linux-gnu`. Keeping `-arch` here, since `-target arm64-apple-<platform>` alone may end up being rewritten to `aarch64-apple-<platform>` (see mstorsjo/xcode-cross@4efe326)
- Loading branch information
Showing
1 changed file
with
154 additions
and
44 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