-
Notifications
You must be signed in to change notification settings - Fork 0
cc: toolchain: add support for aarch64-darwin-llvm [BUILD-563] #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d76b02f
add support for aarch-64-darwin
jungleraptor 715f51c
fixes
swiftnav-svc-jenkins 65f5100
remove references to ld in aarch64
jungleraptor f9e3b19
bump to v14.0.6
jungleraptor ba4e2e2
fix
jungleraptor 010e63d
try noarch
jungleraptor 07d3e39
add ffp file
jungleraptor 85a92d9
fall back to 14.0.0 arch build
jungleraptor b2ee419
remove ffp file
jungleraptor 7b787fa
format
jungleraptor 6e92afa
disable chained fixups
swiftnav-svc-jenkins e097296
use llvm ar
jungleraptor 155b5d9
fix
jungleraptor b539805
Revert "fix"
swiftnav-svc-jenkins 4e2c31b
Revert "Revert "fix""
swiftnav-svc-jenkins 59699b2
Revert "use llvm ar"
swiftnav-svc-jenkins 5d9023e
stop using features
jungleraptor 0dad9b3
format
jungleraptor 22c00d9
add comment
jungleraptor fd24cf0
add clang tidy support
jungleraptor 4f6eb10
add clang-format support
jungleraptor 17a073e
remove clang tools for aarch64-darwin
jungleraptor 2a51875
Merge branch 'main' into isaac/aarch64-darwin-llvm
jungleraptor 15b5ff4
set -ffp-contract=off
jungleraptor f355676
reenable clang-format for aarch64-darwin
jungleraptor bc1031a
fix
jungleraptor 07ebc81
add comments:
jungleraptor a636ce8
add link
jungleraptor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,149 @@ | ||
| # Copyright (C) 2022 Swift Navigation Inc. | ||
| # Contact: Swift Navigation <dev@swift-nav.com> | ||
| # | ||
| # This source is subject to the license found in the file 'LICENSE' which must | ||
| # be be distributed together with this source. All other rights reserved. | ||
| # | ||
| # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, | ||
| # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED | ||
| # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. | ||
|
|
||
| package(default_visibility = ["//visibility:public"]) | ||
|
|
||
| load("//cc/toolchains/llvm:cc_toolchain_config.bzl", "cc_toolchain_config") | ||
|
|
||
| filegroup( | ||
| name = "wrappers", | ||
| srcs = glob([ | ||
| "wrappers/**", | ||
| ]), | ||
| visibility = ["//visibility:public"], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "ar_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:ar", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "as_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:as", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "compiler_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:clang", | ||
| "@aarch64-darwin-llvm//:include", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "dwp_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:dwp", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "linker_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:ar", | ||
| "@aarch64-darwin-llvm//:clang", | ||
| "@aarch64-darwin-llvm//:lib", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "objcopy_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:objcopy", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "strip_files", | ||
| srcs = [ | ||
| ":wrappers", | ||
| "@aarch64-darwin-llvm//:strip", | ||
| ], | ||
| ) | ||
|
|
||
| filegroup( | ||
| name = "all_files", | ||
| srcs = [ | ||
| "linker_files", | ||
| ":compiler_files", | ||
| "@aarch64-darwin-llvm//:bin", | ||
| ], | ||
| ) | ||
|
|
||
| cc_toolchain_config( | ||
| name = "local-aarch64-darwin", | ||
| abi_libc_version = "darwin_aarch64", | ||
| abi_version = "darwin_aarch64", | ||
| builtin_sysroot = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", | ||
| compiler = "clang", | ||
| cxx_builtin_include_directories = [ | ||
| "%sysroot%/usr/include", | ||
| "%sysroot%/System/Library/Frameworks", | ||
| ], | ||
| host_system_name = "darwin-aarch64", | ||
| is_darwin = True, | ||
| target_cpu = "darwin", | ||
| target_libc = "macosx", | ||
| target_system_name = "aarch64-apple-macosx", | ||
| tool_paths = { | ||
| "ar": "/usr/bin/libtool", | ||
| "cpp": "wrappers/clang-cpp", | ||
| "gcc": "wrappers/clang", | ||
| "gcov": "wrappers/llvm-profdata", | ||
| "llvm-cov": "wrappers/llvm-cov", | ||
| "llvm-profdata": "wrappers/llvm-profdata", | ||
| "ld": "/usr/bin/ld", | ||
| "nm": "wrappers/llvm-nm", | ||
| "objcopy": "wrappers/llvm-objcopy", | ||
| "objdump": "wrappers/llvm-objdump", | ||
| "strip": "wrappers/llvm-strip", | ||
| }, | ||
| toolchain_identifier = "clang-aarch64-darwin", | ||
| toolchain_path_prefix = "external/aarch64-darwin-llvm", | ||
| ) | ||
|
|
||
| cc_toolchain( | ||
| name = "cc-clang-aarch64-darwin", | ||
| all_files = ":all_files", | ||
| ar_files = ":ar_files", | ||
| as_files = ":as_files", | ||
| compiler_files = ":compiler_files", | ||
| dwp_files = ":dwp_files", | ||
| linker_files = ":linker_files", | ||
| objcopy_files = ":objcopy_files", | ||
| strip_files = ":strip_files", | ||
| toolchain_config = ":local-aarch64-darwin", | ||
| ) | ||
|
|
||
| toolchain( | ||
| name = "cc-toolchain-aarch64-darwin", | ||
| exec_compatible_with = [ | ||
| "@platforms//cpu:aarch64", | ||
| "@platforms//os:macos", | ||
| ], | ||
| target_compatible_with = [ | ||
| "@platforms//cpu:aarch64", | ||
| "@platforms//os:macos", | ||
| ], | ||
| target_settings = None, | ||
| toolchain = ":cc-clang-aarch64-darwin", | ||
| toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", | ||
| ) |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| wrapper |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.