Files
Cole Faust ffc979291f Rewrite rustc_wrapper in go
The shell based rustc_wrapper depended on the grep and sed tools,
and failed when running the build with action sandboxing.

We could potentially plumb grep/sed through to the dependencies of
the command, but I think it's easier just to rewrite the script in
go, which won't need any external tools.

Bug: 473821643
Test: Presubmits
Change-Id: Iaf99933865dc1be8bc394de8d451012be9d10411
2026-01-29 18:36:13 -08:00

25 lines
778 B
Plaintext

// Copyright 2016 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
blueprint_go_binary {
name: "rustc_wrapper",
srcs: [
"rustc_wrapper.go",
],
}