diff options
| author | 2022-01-23 20:48:36 -0800 | |
|---|---|---|
| committer | 2022-01-24 17:33:05 -0800 | |
| commit | e32f09312019d7dea38b058cbc23dd0ea1186cf8 (patch) | |
| tree | df53ac616af099fe87d36d29a8364aa9db799775 /rust/bindgen.go | |
| parent | 018cbebd7149afb14a60e84e4fd9c53ff63cd676 (diff) | |
Support building rust modules against musl libc
Add a rust toolchain for musl libc, use std library built from source,
and add default dependencies on musl libc.
Bug: 216192129
Test: m USE_HOST_MUSL=true host-native
Change-Id: Ic5ff4487db9693aeb08a13405f4d18465eecdc4b
Diffstat (limited to 'rust/bindgen.go')
| -rw-r--r-- | rust/bindgen.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/bindgen.go b/rust/bindgen.go index ef5702bcd..f4c337d69 100644 --- a/rust/bindgen.go +++ b/rust/bindgen.go @@ -288,6 +288,8 @@ func (b *bindgenDecorator) SourceProviderDeps(ctx DepsContext, deps Deps) Deps { deps = b.BaseSourceProvider.SourceProviderDeps(ctx, deps) if ctx.toolchain().Bionic() { deps = bionicDeps(ctx, deps, false) + } else if ctx.Os() == android.LinuxMusl { + deps = muslDeps(ctx, deps, false) } deps.SharedLibs = append(deps.SharedLibs, b.ClangProperties.Shared_libs...) |