aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2016-07-14 10:27:10 -0700
committerColin Cross <ccross@android.com>2016-07-14 10:28:40 -0700
commitaa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21 (patch)
tree4c9c03321077458750e9dec85ae4b81b561805e2 /cc/cc.go
parent72ad175126d3899707659ab891cef5e1c17d8250 (diff)
downloadbuild_soong-aa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21.tar.gz
build_soong-aa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21.tar.bz2
build_soong-aa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21.zip
Fix rpath for host benchmarks
Host benchmarks are installed in out/host/*/nativetest/<module>/<benchmark> now, so the rpath needs to include ../../lib. Make benchmarkLinker extend testBinaryLinker in order to pick up the correct rpath. Change-Id: I3c34aee8d3c21a08b75258c1d5caf6c9fb6feab3
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/cc.go b/cc/cc.go
index f169a385..8391cb56 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -2311,11 +2311,11 @@ func testLibraryFactory() (blueprint.Module, []interface{}) {
}
type benchmarkLinker struct {
- binaryLinker
+ testBinaryLinker
}
func (benchmark *benchmarkLinker) deps(ctx BaseModuleContext, deps Deps) Deps {
- deps = benchmark.binaryLinker.deps(ctx, deps)
+ deps = benchmark.testBinaryLinker.deps(ctx, deps)
deps.StaticLibs = append(deps.StaticLibs, "libgoogle-benchmark")
return deps
}