Merge "bpf: use PwdPrefix() helper"
diff --git a/bpf/bpf.go b/bpf/bpf.go
index 7376750..a840fa3 100644
--- a/bpf/bpf.go
+++ b/bpf/bpf.go
@@ -24,6 +24,7 @@
"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 @@
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 (