Skip to content

Commit

Permalink
Allow setting supports_embedded_runtimes crosstool capability using f…
Browse files Browse the repository at this point in the history
…eature

`supports_embedded_runtimes` can now be expressed using 'static_link_cpp_runtimes' feature (should be enabled for it to take effect).

This cl allows toolchain owners to express that toolchain supports embedded runtimes in the same way as other crosstool capabilities are expressed.

This cl is a step towards bazelbuild/bazel#5883. Also
see the rollout doc here:
https://docs.google.com/document/d/1uv4c1zag6KvdI31qdx8C6jiTognXPQrxgsUpVefm9fM/edit#.

Flag removing legacy behavior is bazelbuild/bazel#6861

RELNOTES: None.
PiperOrigin-RevId: 227024509
  • Loading branch information
hlopko committed Jan 9, 2019
1 parent 8062601 commit c8a8211
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ message CToolchain {
optional bool supports_start_end_lib = 28 [default = false];
// Legacy field, use 'supports_interface_shared_libraries' instead.
optional bool supports_interface_shared_objects = 32 [default = false];
// Legacy field, use 'static_link_cpp_runtimes' feature instead.
optional bool supports_embedded_runtimes = 40 [default = false];
// If specified, Blaze finds statically linked / dynamically linked runtime
// libraries in the declared crosstool filegroup. Otherwise, Blaze
Expand Down

0 comments on commit c8a8211

Please sign in to comment.