diff options
author | 2015-07-08 17:05:43 +0000 | |
---|---|---|
committer | 2015-07-10 17:15:18 +0000 | |
commit | 525019b7bd8810ef8401ecb80247fa4226eba8c2 (patch) | |
tree | b2002fade0c442cd1ac0eb0f0197926d8c0b5bab /src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java | |
parent | a5e5532dd3418a0c8018e7524efecdfc4402eee4 (diff) |
Tolerate "..." as the base filename for the fdo profile.
This is fragile, and there might be other places in the codebase this issue occurs.
--
MOS_MIGRATED_REVID=97784977
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java index c960ef8912..a2339c2b2a 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java @@ -222,12 +222,12 @@ public class FdoSupport { : Root.asDerivedRoot(execRoot, execRoot.getRelative("blaze-fdo")); this.fdoRootExecPath = fdoProfile == null ? null - : fdoRoot.getExecPath().getRelative(new PathFragment("_fdo").getChild( - FileSystemUtils.removeExtension(fdoProfile.getBaseName()))); + : fdoRoot.getExecPath().getRelative(FileSystemUtils.removeExtension( + new PathFragment("_fdo").getChild(fdoProfile.getBaseName()))); this.fdoPath = fdoProfile == null ? null - : new PathFragment("_fdo").getChild( - FileSystemUtils.removeExtension(fdoProfile.getBaseName())); + : FileSystemUtils.removeExtension(new PathFragment("_fdo").getChild( + fdoProfile.getBaseName())); this.lipoMode = lipoMode; this.useAutoFdo = fdoProfile != null && isAutoFdo(fdoProfile.getBaseName()); this.useLLVMFdo = fdoProfile != null && isLLVMFdo(fdoProfile.getBaseName()); |