diff options
author | 2024-03-28 19:27:24 +0000 | |
---|---|---|
committer | 2024-03-28 19:27:24 +0000 | |
commit | cfeec1c2dd9cab5530952cac961bdd74225525ec (patch) | |
tree | 9b1d9f5f8250dc937613bf48761c3062dd2c4f98 /rust/builder.go | |
parent | f875565c7f169e41a9007e4513289235322dee2b (diff) |
rust: Remove unnecessary escaping in grep call
Modules with special characters wouldn't build correctly because $out
was being double escaped -- once in the build command and once by Soong
itself.
Remove the escape in the build command and just let Soong escape as
necessary.
Bug: 320578837
Test: Module with @ in name builds
Change-Id: Ic2554b9c07f37783287e1ebdeb06ef8b7b66a296
Diffstat (limited to 'rust/builder.go')
-rw-r--r-- | rust/builder.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/builder.go b/rust/builder.go index c855cfbd2..2f5e12aa5 100644 --- a/rust/builder.go +++ b/rust/builder.go @@ -32,7 +32,7 @@ var ( "-C linker=${config.RustLinker} " + "-C link-args=\"${crtBegin} ${earlyLinkFlags} ${linkFlags} ${crtEnd}\" " + "--emit link -o $out --emit dep-info=$out.d.raw $in ${libFlags} $rustcFlags" + - " && grep \"^$out:\" $out.d.raw > $out.d", + " && grep ^$out: $out.d.raw > $out.d", CommandDeps: []string{"$rustcCmd"}, // Rustc deps-info writes out make compatible dep files: https://github.com/rust-lang/rust/issues/7633 // Rustc emits unneeded dependency lines for the .d and input .rs files. |