[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)
Amir Ayupov via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 12 19:41:52 PST 2024
================
@@ -20,9 +21,13 @@ elif clang_bolt_mode == "perf":
else:
assert 0, "Unsupported CLANG_BOLT_MODE variable"
-config.clang = perf_wrapper + os.path.realpath(
+clang_nowrapper = os.path.realpath(
lit.util.which(clang_binary, config.clang_tools_dir)
).replace("\\", "/")
+config.clang = perf_wrapper + clang_nowrapper
----------------
aaupov wrote:
Just for my understanding: we're keeping perf_wrapper set if CLANG_BOLT=perf. However we pass perf_wrapper in front of cmake command in `clang/utils/perf-training/llvm-support/build.test` – do we end up with nested perf invocations, or do we strip perf_wrapper from clang in this case?
https://github.com/llvm/llvm-project/pull/119117
More information about the cfe-commits
mailing list