@@ -97,6 +97,10 @@ def exclude_unsupported_files_for_aix(dirname):
9797config .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+ )
100104config .substitutions .append (
101105 (
102106 "%clangxx_profgen " ,
@@ -116,6 +120,10 @@ def exclude_unsupported_files_for_aix(dirname):
116120config .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+ )
119127config .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-
170168if config .host_os not in [
171169 "Windows" ,
172170 "Darwin" ,
0 commit comments