diff options
author | 2017-06-07 13:36:37 -0400 | |
---|---|---|
committer | 2017-06-08 10:52:26 -0400 | |
commit | e398b02227204f79caaa4c29861da93af1c1051e (patch) | |
tree | 5980f96ffe9a607c1bb61fa64b5b74bf75fc42aa /src/main/java/com/google/devtools/build/lib/rules/cpp/FdoSupport.java | |
parent | 69faad021dcf65d8f1967f26808c10f9f949ed7e (diff) |
Make the error message when a file is not found in the profile zip more indicative of the probable cause of the error.
RELNOTES: None.
PiperOrigin-RevId: 158286091
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 | 9 |
1 files changed, 7 insertions, 2 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 eddb0452ed..9bf74e93c5 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 @@ -610,7 +610,9 @@ public class FdoSupport { getGcdaArtifactsForGcdaPath(fdoSupportProvider, importedFile); if (gcdaArtifact == null) { ruleContext.ruleError(String.format( - ".gcda file %s is not in the FDO zip (referenced by source file %s)", + ".gcda file %s is not in the FDO zip (referenced by source file %s). Check if " + + "your profile is generated from the same sources you are building the " + + "optimized binary from", importedFile, sourceName)); } else { auxiliaryInputs.add(gcdaArtifact); @@ -622,7 +624,10 @@ public class FdoSupport { auxiliaryInputs.add(importedArtifact); } else { ruleContext.ruleError(String.format( - "cannot find source file '%s' referenced from '%s'", importedFile, objectName)); + "cannot find source file '%s' referenced from '%s' by LIPO inclusion. Check if " + + "your profile is generated from the same sources you are building the " + + "optimized binary from", + importedFile, objectName)); } } } |