summaryrefslogtreecommitdiff
path: root/rust/rust.go
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2021-09-17 11:38:09 +0000
committer Jingwen Chen <jingwen@google.com> 2021-10-07 14:04:39 +0000
commit6ada589f6e4e5d4a7881aefea84afcd4022254cb (patch)
tree18fc4ca4b0f04ee9462a9af1bb11792c08142010 /rust/rust.go
parent8f22274297f613407859ace5fabb474dd3bb46df (diff)
Add support for nocrt by translating it to link_crt in bp2build.
If nocrt is true, then the compilation for cc_shared_library, cc_binary (shared or static binaries) will _not_ link against their respective crtbegin and crtend libraries. nocrt is true only for the Bionic libraries themselves. For everything else that links against the Bionic runtime, crtbegin and crtend libraries are used. This makes the "nocrt: false" case the majority. Hence, if nocrt is explicitly false, we omit the generating attribute in bp2build. If nocrt is explicitly true (link_crt is false), the Starlark macro will disable the link_crt cc_toolchain feature. Test: new tests Test: CI Fixes: 187928070 Fixes: 197946668 Change-Id: I8947789930e599dc802d8eae440859257d044475
Diffstat (limited to 'rust/rust.go')
0 files changed, 0 insertions, 0 deletions