@@ -265,6 +265,95 @@ _compiler_configuration_attrs = {
265265 "target OS and arch pair you want to override " +
266266 "({}); empty key overrides all." .format (_target_pairs )),
267267 ),
268+ # Same as the above flags, but instead of overriding the defaults, it just adds extras
269+ "extra_compile_flags" : attr .string_list_dict (
270+ mandatory = False ,
271+ doc = ("Extra compile_flags, added after default values. " +
272+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
273+ "to the root LLVM distribution directory. Provide one list for each " +
274+ "target OS and arch pair you want to add " +
275+ "({}); an empty key adds all." .format (_target_pairs )),
276+ ),
277+ "extra_cxx_flags" : attr .string_list_dict (
278+ mandatory = False ,
279+ doc = ("Extra cxx_flags, added after default values. " +
280+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
281+ "to the root LLVM distribution directory. Provide one list for each " +
282+ "target OS and arch pair you want to add " +
283+ "({}); an empty key adds all." .format (_target_pairs )),
284+ ),
285+ "extra_link_flags" : attr .string_list_dict (
286+ mandatory = False ,
287+ doc = ("Extra link_flags, added after the default values. " +
288+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
289+ "to the root LLVM distribution directory. Provide one list for each " +
290+ "target OS and arch pair you want to add " +
291+ "({}); an empty key adds all." .format (_target_pairs )),
292+ ),
293+ "extra_archive_flags" : attr .string_list_dict (
294+ mandatory = False ,
295+ doc = ("Extra archive_flags, added after the default values. " +
296+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
297+ "to the root LLVM distribution directory. Provide one list for each " +
298+ "target OS and arch pair you want to add " +
299+ "({}); an empty key adds all." .format (_target_pairs )),
300+ ),
301+ "extra_link_libs" : attr .string_list_dict (
302+ mandatory = False ,
303+ doc = ("Extra for link_libs, added after the default values. " +
304+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
305+ "to the root LLVM distribution directory. Provide one list for each " +
306+ "target OS and arch pair you want to add " +
307+ "({}); an empty key adds all." .format (_target_pairs )),
308+ ),
309+ "extra_opt_compile_flags" : attr .string_list_dict (
310+ mandatory = False ,
311+ doc = ("Extra opt_compile_flags, added after the default values. " +
312+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
313+ "to the root LLVM distribution directory. Provide one list for each " +
314+ "target OS and arch pair you want to add " +
315+ "({}); an empty key adds all." .format (_target_pairs )),
316+ ),
317+ "extra_opt_link_flags" : attr .string_list_dict (
318+ mandatory = False ,
319+ doc = ("Extra opt_link_flags, added after the default values. " +
320+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
321+ "to the root LLVM distribution directory. Provide one list for each " +
322+ "target OS and arch pair you want to add " +
323+ "({}); an empty key adds all." .format (_target_pairs )),
324+ ),
325+ "extra_dbg_compile_flags" : attr .string_list_dict (
326+ mandatory = False ,
327+ doc = ("Extra dbg_compile_flags, added after the default values. " +
328+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
329+ "to the root LLVM distribution directory. Provide one list for each " +
330+ "target OS and arch pair you want to add " +
331+ "({}); an empty key adds all." .format (_target_pairs )),
332+ ),
333+ "extra_coverage_compile_flags" : attr .string_list_dict (
334+ mandatory = False ,
335+ doc = ("Extra coverage_compile_flags, added after the default values. " +
336+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
337+ "to the root LLVM distribution directory. Provide one list for each " +
338+ "target OS and arch pair you want to add " +
339+ "({}); an empty key adds all." .format (_target_pairs )),
340+ ),
341+ "extra_coverage_link_flags" : attr .string_list_dict (
342+ mandatory = False ,
343+ doc = ("Extra coverage_link_flags, added after the default values. " +
344+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
345+ "to the root LLVM distribution directory. Provide one list for each " +
346+ "target OS and arch pair you want to add " +
347+ "({}); an empty key adds all." .format (_target_pairs )),
348+ ),
349+ "extra_unfiltered_compile_flags" : attr .string_list_dict (
350+ mandatory = False ,
351+ doc = ("Extra unfiltered_compile_flags, added after the default values. " +
352+ "`{toolchain_path_prefix}` in the flags will be substituted by the path " +
353+ "to the root LLVM distribution directory. Provide one list for each " +
354+ "target OS and arch pair you want to add " +
355+ "({}); an empty key adds all." .format (_target_pairs )),
356+ ),
268357 "target_settings" : attr .string_list_dict (
269358 mandatory = False ,
270359 doc = ("Override the toolchain's `target_settings` attribute." ),
0 commit comments