Commit 6153ba1
Add support for optional cc_toolchain (#3665)
Changes:
- Moved `rust_allocator_libraries` rule implementation into it's own
file
- Updated all rules to set `mandatory = False` for
`@bazel_tools//tools/cpp:toolchain_type` toolchains.
- Refactored rules_rust internals to work in cases where
`find_cc_toolchain` returns `None`
- Added `linker` as an optional attribute to `rust_toolchain`. This is
expected to be `rust-lld` for now.
- Added a new setting
`@rules_rust//rust/settings:toolchain_linker_preference` which in the
event `rust_toolchain.linker` and a `cc_toolchain` are present, chooses
the linker to use. (Defaults to `cc`).
- Introduce `--@rules_rust//settings:default_allocator_library` as a
flag to globally control this value.
---------
Co-authored-by: Daniel Wagner-Hall <[email protected]>1 parent 431f6b2 commit 6153ba1
File tree
48 files changed
+2257
-334
lines changed- .bazelci
- cargo
- private
- examples/cross_compile
- platforms
- src
- tools
- extensions
- bindgen/private
- prost/private
- protobuf
- wasm_bindgen/private
- ffi/cc
- allocator_library
- empty
- global_allocator_library
- rust
- private
- cc
- settings
- test
- integration/cc_common_link/unit
- toolchain
- unit
- native_deps
- pipelined_compilation
- toolchain
- util/process_wrapper
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
48 files changed
+2257
-334
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
726 | | - | |
727 | | - | |
728 | | - | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
729 | 731 | | |
730 | | - | |
731 | | - | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
732 | 738 | | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
733 | 759 | | |
734 | 760 | | |
735 | 761 | | |
736 | 762 | | |
737 | | - | |
738 | | - | |
739 | 763 | | |
740 | 764 | | |
741 | 765 | | |
| |||
775 | 799 | | |
776 | 800 | | |
777 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
778 | 809 | | |
779 | 810 | | |
780 | 811 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
0 commit comments