aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/launcher/launcher.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/launcher/launcher.cc b/src/tools/launcher/launcher.cc
index b663c2cc77..e1a96ab40a 100644
--- a/src/tools/launcher/launcher.cc
+++ b/src/tools/launcher/launcher.cc
@@ -139,13 +139,14 @@ void BinaryLauncherBase::ParseManifestFile(ManifestFileMap* manifest_file_map,
wstring BinaryLauncherBase::Rlocation(const wstring& path,
bool need_workspace_name) const {
+ // No need to do rlocation if the path is absolute.
+ if (blaze_util::IsAbsolute(path)) {
+ return path;
+ }
+
// If the manifest file map is empty, then we're using the runfiles directory
// instead.
if (manifest_file_map.empty()) {
- if (blaze_util::IsAbsolute(path)) {
- return path;
- }
-
wstring query_path = runfiles_dir;
if (need_workspace_name) {
query_path += L"/" + this->workspace_name;