Use prebuilt awk on Darwin too
Test: build on mac
Change-Id: I25d21c0df0b9023d6c43b11dde60e6066f107576
diff --git a/ui/build/path.go b/ui/build/path.go
index 5294133..0e1c02c 100644
--- a/ui/build/path.go
+++ b/ui/build/path.go
@@ -149,10 +149,8 @@
// We put some prebuilts in $PATH, since it's infeasible to add dependencies for all of
// them.
- if runtime.GOOS == "linux" {
- prebuiltsPath, _ := filepath.Abs("prebuilts/build-tools/path/" + runtime.GOOS + "-x86")
- myPath = prebuiltsPath + string(os.PathListSeparator) + myPath
- }
+ prebuiltsPath, _ := filepath.Abs("prebuilts/build-tools/path/" + runtime.GOOS + "-x86")
+ myPath = prebuiltsPath + string(os.PathListSeparator) + myPath
config.Environment().Set("PATH", myPath)
config.pathReplaced = true
diff --git a/ui/build/paths/config.go b/ui/build/paths/config.go
index b20f37c..6ef7fe9 100644
--- a/ui/build/paths/config.go
+++ b/ui/build/paths/config.go
@@ -125,9 +125,6 @@
"ld.gold": Forbidden,
"pkg-config": Forbidden,
- // On Linux we'll use one-true-awk instead.
- "awk": LinuxOnlyPrebuilt,
-
// On Linux we'll use the toybox versions of these instead.
"basename": LinuxOnlyPrebuilt,
"cat": LinuxOnlyPrebuilt,