-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [G++] support * Add support for GCC 13.2.1 (#28) * [CC] no stdinc * [CC] bazel include and library paths * [BAZEL] test backward compat * [BAZEL] restore workspace * [CONFIG] restore behavior * [CI] fix windows env * [GCC] no canonical headers * [BZLMOD] add platforms dep (#27) * [BZLMOD] add platforms dep * [CI] switch to nativelink * add support for GCC 13.2.1 --------- Co-authored-by: d-asnaghi <[email protected]> --------- Co-authored-by: Ryan Draves <[email protected]>
- Loading branch information
1 parent
7c4aae3
commit 0a42ae5
Showing
9 changed files
with
101 additions
and
249 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,142 +1,49 @@ | ||
# toolchains/compiler.BUILD | ||
load("@arm_none_eabi//toolchain:toolchain.bzl", "tools") | ||
|
||
package(default_visibility = ["//visibility:public"]) | ||
|
||
# export the executable files to make them available for direct use. | ||
exports_files(glob(["**"], exclude_directories=0)) | ||
|
||
# gcc executables. | ||
filegroup( | ||
name = "gcc", | ||
srcs = ["bin/arm-none-eabi-gcc"], | ||
) | ||
|
||
# cpp executables. | ||
filegroup( | ||
name = "cpp", | ||
srcs = ["bin/arm-none-eabi-cpp"], | ||
) | ||
|
||
# gcov executables. | ||
filegroup( | ||
name = "gcov", | ||
srcs = ["bin/arm-none-eabi-gcov"], | ||
) | ||
|
||
# gdb executables. | ||
filegroup( | ||
name = "gdb", | ||
srcs = ["bin/arm-none-eabi-gdb"], | ||
) | ||
|
||
# ar executables. | ||
filegroup( | ||
name = "ar", | ||
srcs = ["bin/arm-none-eabi-ar"], | ||
) | ||
|
||
# ld executables. | ||
filegroup( | ||
name = "ld", | ||
srcs = ["bin/arm-none-eabi-ld"], | ||
) | ||
|
||
# nm executables. | ||
filegroup( | ||
name = "nm", | ||
srcs = ["bin/arm-none-eabi-nm"], | ||
) | ||
|
||
# objcopy executables. | ||
filegroup( | ||
name = "objcopy", | ||
srcs = ["bin/arm-none-eabi-objcopy"], | ||
) | ||
|
||
# objdump executables. | ||
filegroup( | ||
name = "objdump", | ||
srcs = ["bin/arm-none-eabi-objdump"], | ||
) | ||
|
||
# strip executables. | ||
filegroup( | ||
name = "strip", | ||
srcs = ["bin/arm-none-eabi-strip"], | ||
) | ||
|
||
# as executables. | ||
filegroup( | ||
name = "as", | ||
srcs = ["bin/arm-none-eabi-as"], | ||
) | ||
|
||
# readelf executables. | ||
filegroup( | ||
name = "readelf", | ||
srcs = ["bin/arm-none-eabi-readelf"], | ||
) | ||
|
||
# size executables. | ||
filegroup( | ||
name = "size", | ||
srcs = ["bin/arm-none-eabi-size"], | ||
) | ||
# executables. | ||
[ | ||
filegroup( | ||
name = tool, | ||
srcs = ["bin/arm-none-eabi-{}".format(tool)], | ||
) | ||
for tool in tools | ||
] | ||
|
||
# libraries and headers. | ||
filegroup( | ||
name = "compiler_pieces", | ||
srcs = glob([ | ||
"bin/**", | ||
"libexec/**", | ||
"arm-none-eabi/**", | ||
"lib/**", | ||
"lib/gcc/arm-none-eabi/**", | ||
]), | ||
) | ||
|
||
# files for executing compiler. | ||
filegroup( | ||
name = "ar_files", | ||
srcs = [ | ||
":ar", | ||
":compiler_pieces", | ||
":gcc", | ||
], | ||
name = "compiler_files", | ||
srcs = [":compiler_pieces"], | ||
) | ||
|
||
# files for executing compiler. | ||
filegroup( | ||
name = "compiler_files", | ||
srcs = [ | ||
":compiler_pieces", | ||
":cpp", | ||
":gcc", | ||
], | ||
name = "ar_files", | ||
srcs = [":compiler_pieces"], | ||
) | ||
|
||
filegroup( | ||
name = "linker_files", | ||
srcs = [ | ||
":ar", | ||
":compiler_pieces", | ||
":gcc", | ||
":ld", | ||
], | ||
srcs = [":compiler_pieces"], | ||
) | ||
|
||
# collection of executables. | ||
filegroup( | ||
name = "compiler_components", | ||
srcs = [ | ||
":ar", | ||
":as", | ||
":compiler_pieces", | ||
":cpp", | ||
":gcc", | ||
":gcov", | ||
":ld", | ||
":nm", | ||
":objcopy", | ||
":objdump", | ||
":strip", | ||
], | ||
srcs = [":compiler_pieces"], | ||
) |
Oops, something went wrong.