summaryrefslogtreecommitdiff
path: root/bpf/bpf.go
diff options
context:
space:
mode:
Diffstat (limited to 'bpf/bpf.go')
-rw-r--r--bpf/bpf.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/bpf/bpf.go b/bpf/bpf.go
index 737675057..a840fa3df 100644
--- a/bpf/bpf.go
+++ b/bpf/bpf.go
@@ -24,6 +24,7 @@ import (
"android/soong/android"
"android/soong/bazel"
"android/soong/bazel/cquery"
+ "android/soong/cc"
"github.com/google/blueprint"
"github.com/google/blueprint/proptools"
@@ -32,9 +33,7 @@ import (
func init() {
registerBpfBuildComponents(android.InitRegistrationContext)
pctx.Import("android/soong/cc/config")
- if runtime.GOOS != "darwin" {
- pctx.StaticVariable("relPwd", "PWD=/proc/self/cwd")
- }
+ pctx.StaticVariable("relPwd", cc.PwdPrefix())
}
var (