Fix local execution of external dynamically linked cc_* targets (#16253)
The fix for remote execution of external dynamically linked cc_* targets in 95a5bfdc regressed local execution of such targets. This is fixed by emitting two rpaths in the case of an external target. Fixes https://github.com/bazelbuild/bazel/pull/16008#issuecomment-1224267553 Closes #16214. PiperOrigin-RevId: 473706330 Change-Id: I500f8b1f79e4d994323651fbb5964a730f1136e3 Co-authored-by:kshyanashree <109167932+kshyanashree@users.noreply.github.com>
Showing
- src/main/java/com/google/devtools/build/lib/rules/cpp/LibrariesToLinkCollector.java 96 additions, 28 deletions...evtools/build/lib/rules/cpp/LibrariesToLinkCollector.java
- src/test/shell/bazel/cc_integration_test.sh 88 additions, 0 deletionssrc/test/shell/bazel/cc_integration_test.sh
- src/test/shell/bazel/remote/remote_execution_test.sh 29 additions, 8 deletionssrc/test/shell/bazel/remote/remote_execution_test.sh
Please register or sign in to comment