Skip to content

Commit aeb7b54

Browse files
committed
Try different profile format name
1 parent 282dec1 commit aeb7b54

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bootstrap/llvm.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ impl Step for Llvm {
342342
cfg.define("LLVM_BUILD_INSTRUMENTED", "IR");
343343
if let Ok(llvm_profile_dir) = std::env::var("LLVM_PROFILE_DIR") {
344344
cfg.define("LLVM_PROFILE_DATA_DIR", llvm_profile_dir);
345-
cxxflags.push("-mllvm");
346-
cxxflags.push("-vp-counters-per-site=10");
347345
}
348346
}
347+
cxxflags.push("-mllvm");
348+
cxxflags.push("-vp-counters-per-site=10");
349349
cfg.define("LLVM_BUILD_RUNTIME", "No");
350350
}
351351
if let Some(path) = builder.config.llvm_profile_use.as_ref() {

src/ci/stage-build.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ def execute_build_pipeline(timer: Timer, pipeline: Pipeline, runner: BenchmarkRu
829829
pipeline.llvm_profile_merged_file_intermediate()
830830
], env=dict(
831831
LLVM_USE_CS_PGO="1",
832-
LLVM_PROFILE_DIR=str(pipeline.llvm_profile_dir_root() / "prof-%p"),
833-
832+
LLVM_PROFILE_DIR=str(pipeline.llvm_profile_dir_root() / "%4m.profraw"),
833+
# LLVM_PROFILE_DIR=str(pipeline.llvm_profile_dir_root() / "prof-%p"),
834834
))
835835
record_metrics(pipeline, rustc_build)
836836

0 commit comments

Comments
 (0)