Skip to content

Commit 185013d

Browse files
author
Wael Yehia
committed
code review
1 parent 96d0411 commit 185013d

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

compiler-rt/test/profile/lit.cfg.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def exclude_unsupported_files_for_aix(dirname):
9797
config.substitutions.append(
9898
("%clang_profgen=", build_invocation(clang_cflags) + " -fprofile-instr-generate=")
9999
)
100+
config.substitutions.append(
101+
("%clang_profgen_cont ", build_invocation(clang_cflags) + " -fprofile-instr-generate " +
102+
("-mllvm -runtime-counter-relocation " if runtime_reloc else ""))
103+
)
100104
config.substitutions.append(
101105
(
102106
"%clangxx_profgen ",
@@ -116,6 +120,10 @@ def exclude_unsupported_files_for_aix(dirname):
116120
config.substitutions.append(
117121
("%clang_pgogen=", build_invocation(clang_cflags) + " -fprofile-generate=")
118122
)
123+
config.substitutions.append(
124+
("%clang_pgogen_cont ", build_invocation(clang_cflags) + " -fprofile-generate " +
125+
("-mllvm -runtime-counter-relocation " if runtime_reloc else ""))
126+
)
119127
config.substitutions.append(
120128
("%clangxx_pgogen ", build_invocation(clang_cxxflags) + " -fprofile-generate ")
121129
)
@@ -157,16 +165,6 @@ def exclude_unsupported_files_for_aix(dirname):
157165
)
158166
)
159167

160-
config.substitutions.append(
161-
("%clang_profgen_cont", build_invocation(clang_cflags) + " -fprofile-instr-generate " +
162-
("-mllvm -runtime-counter-relocation" if runtime_reloc else ""))
163-
)
164-
165-
config.substitutions.append(
166-
("%clang_pgogen_cont", build_invocation(clang_cflags) + " -fprofile-generate " +
167-
("-mllvm -runtime-counter-relocation" if runtime_reloc else ""))
168-
)
169-
170168
if config.host_os not in [
171169
"Windows",
172170
"Darwin",

0 commit comments

Comments
 (0)