diff options
author | Colin Cross <ccross@android.com> | 2016-07-14 10:27:10 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2016-07-14 10:28:40 -0700 |
commit | aa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21 (patch) | |
tree | 4c9c03321077458750e9dec85ae4b81b561805e2 /cc/cc.go | |
parent | 72ad175126d3899707659ab891cef5e1c17d8250 (diff) | |
download | build_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.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |