Skip to content

Commit 7db847d

Browse files
authored
Filter out configuration file from compile commands (#131099)
The commands to run the compilation when printed with `-###` contain various irrelevant lines for the perf-training. Most of them are filtered out already but when configured with `CLANG_CONFIG_FILE_SYSTEM_DIR` a new line like the following is added and needs to be filtered out: `Configuration file: /etc/clang/x86_64-redhat-linux-gnu-clang.cfg`
1 parent 39bb267 commit 7db847d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/utils/perf-training/perf-helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ def get_cc1_command_for_args(cmd, env):
237237
or ln.startswith("InstalledDir:")
238238
or ln.startswith("LLVM Profile Note")
239239
or ln.startswith(" (in-process)")
240+
or ln.startswith("Configuration file:")
240241
or " version " in ln
241242
):
242243
continue

0 commit comments

Comments
 (0)