@@ -30,9 +30,6 @@ def get_required_attr(config, attr_name):
30
30
31
31
target_is_msvc = bool (re .match (r".*-windows-msvc$" , config .target_triple ))
32
32
33
- # Whether continous profile collection (%c) requires runtime counter relocation on this platform
34
- runtime_reloc = bool (config .host_os in ["AIX" , "Linux" ])
35
-
36
33
if config .host_os in ["Linux" ]:
37
34
extra_link_flags = ["-ldl" ]
38
35
elif target_is_msvc :
@@ -97,14 +94,6 @@ def exclude_unsupported_files_for_aix(dirname):
97
94
config .substitutions .append (
98
95
("%clang_profgen=" , build_invocation (clang_cflags ) + " -fprofile-instr-generate=" )
99
96
)
100
- config .substitutions .append (
101
- (
102
- "%clang_profgen_cont " ,
103
- build_invocation (clang_cflags )
104
- + " -fprofile-instr-generate "
105
- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
106
- )
107
- )
108
97
config .substitutions .append (
109
98
(
110
99
"%clangxx_profgen " ,
@@ -124,28 +113,12 @@ def exclude_unsupported_files_for_aix(dirname):
124
113
config .substitutions .append (
125
114
("%clang_pgogen=" , build_invocation (clang_cflags ) + " -fprofile-generate=" )
126
115
)
127
- config .substitutions .append (
128
- (
129
- "%clang_pgogen_cont " ,
130
- build_invocation (clang_cflags )
131
- + " -fprofile-generate "
132
- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
133
- )
134
- )
135
116
config .substitutions .append (
136
117
("%clangxx_pgogen " , build_invocation (clang_cxxflags ) + " -fprofile-generate " )
137
118
)
138
119
config .substitutions .append (
139
120
("%clangxx_pgogen=" , build_invocation (clang_cxxflags ) + " -fprofile-generate=" )
140
121
)
141
- config .substitutions .append (
142
- (
143
- "%clangxx_pgogen_cont " ,
144
- build_invocation (clang_cxxflags )
145
- + " -fprofile-generate "
146
- + ("-mllvm -runtime-counter-relocation " if runtime_reloc else "" ),
147
- )
148
- )
149
122
150
123
config .substitutions .append (
151
124
("%clang_cspgogen " , build_invocation (clang_cflags ) + " -fcs-profile-generate " )
0 commit comments