Skip to content

Commit

Permalink
Zipped LLVM multi-arch profiles is now supported.
Browse files Browse the repository at this point in the history
RELNOTES: None.
PiperOrigin-RevId: 168703540
  • Loading branch information
Googler authored and philwo committed Sep 15, 2017
1 parent 82d6e8a commit cd37941
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ private Artifact convertLLVMRawProfileToIndexed(
return null;
}

// TODO(zhayu): find a way to avoid hard-coding cpu architecture here (b/65582760)
String rawProfileFileName = "fdocontrolz_profile.profraw";
String cpu = cppConfiguration.getTargetCpu();
if (!"k8".equals(cpu)) {
rawProfileFileName = "fdocontrolz_profile-" + cpu + ".profraw";
}
rawProfileArtifact =
ruleContext.getUniqueDirectoryArtifact(
"fdo", rawProfileFileName, ruleContext.getBinOrGenfilesDirectory());
Expand Down

0 comments on commit cd37941

Please sign in to comment.