diff options
author | Ivan Lozano <ivanlozano@google.com> | 2019-11-05 12:16:46 -0800 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2019-11-05 12:16:46 -0800 |
commit | b2df9f88eb9767dd43e6eeee53181976cc9368c9 (patch) | |
tree | 2e54929a318606feae08f60d9834fb23c9f7bf61 /rust/binary.go | |
parent | af60d490ff6fdd716b343e0b29ce5b2bb95e7829 (diff) |
Soong Rust source clean up.
Break up some of the longer lines in the Rust source and refactor the
TransformSrcto* functions to take fewer arguments.
Bug: N/A
Test: m -j crosvm.experimental
Change-Id: Ia0deb8bfe3e1bfd07ef35633e9a7e6f5e799b3a3
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", |