diff options
| author | 2024-06-28 14:44:49 +0000 | |
|---|---|---|
| committer | 2024-06-28 14:44:49 +0000 | |
| commit | a8a6f549ee9686fdb527f24b2fdf633202a53d02 (patch) | |
| tree | 420c77684255d548a947fab4482cce990dfee826 /rust/binary.go | |
| parent | 3dcfc11ad975fbf26889740a56b72c5ca77c4929 (diff) | |
| parent | fd47b1ab6a51ce3b148e2d4644b1d96b058c2064 (diff) | |
Merge "cc/rust: Alias ffi rlib variant for static_libs" into main
Diffstat (limited to 'rust/binary.go')
| -rw-r--r-- | rust/binary.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/binary.go b/rust/binary.go index 996951366..cba29a023 100644 --- a/rust/binary.go +++ b/rust/binary.go @@ -134,6 +134,9 @@ func (binary *binaryDecorator) compile(ctx ModuleContext, flags Flags, deps Path ret := buildOutput{outputFile: outputFile} crateRootPath := crateRootPath(ctx, binary) + // Ensure link dirs are not duplicated + deps.linkDirs = android.FirstUniqueStrings(deps.linkDirs) + flags.RustFlags = append(flags.RustFlags, deps.depFlags...) flags.LinkFlags = append(flags.LinkFlags, deps.depLinkFlags...) flags.LinkFlags = append(flags.LinkFlags, deps.linkObjects...) |