diff options
author | 2019-11-14 14:07:55 +0000 | |
---|---|---|
committer | 2019-11-14 14:07:55 +0000 | |
commit | 263dcb7397844bd6d4005b8aaffbb01120da85d0 (patch) | |
tree | acb7cdcd8c95601db1f7bbc0f70ccc09a85b907a /rust/binary.go | |
parent | c5c4d18db0c74547a85bf6796420ab3415ce4a11 (diff) | |
parent | b2df9f88eb9767dd43e6eeee53181976cc9368c9 (diff) |
Merge "Soong Rust source clean up."
Diffstat (limited to 'rust/binary.go')
-rw-r--r-- | rust/binary.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rust/binary.go b/rust/binary.go index 52f840e7a..a909ea681 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -28,7 +28,8 @@ type BinaryCompilerProperties struct { // path to the main source file that contains the program entry point (e.g. src/main.rs) Srcs []string `android:"path,arch_variant"` - // passes -C prefer-dynamic to rustc, which tells it to dynamically link the stdlib (assuming it has no dylib dependencies already) + // passes -C prefer-dynamic to rustc, which tells it to dynamically link the stdlib + // (assuming it has no dylib dependencies already) Prefer_dynamic *bool } @@ -73,7 +74,8 @@ func (binary *binaryDecorator) compilerFlags(ctx ModuleContext, flags Flags) Fla flags = binary.baseCompiler.compilerFlags(ctx, flags) if ctx.toolchain().Bionic() { - // no-undefined-version breaks dylib compilation since __rust_*alloc* functions aren't defined, but we can apply this to binaries. + // no-undefined-version breaks dylib compilation since __rust_*alloc* functions aren't defined, + // but we can apply this to binaries. flags.LinkFlags = append(flags.LinkFlags, "-Wl,--gc-sections", "-Wl,-z,nocopyreloc", |