Skip to content

Commit 4aba371

Browse files
committed
Add external_include_paths feature to toolchain configuration
1 parent 76837cb commit 4aba371

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

toolchain/config.bzl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,22 @@ def _impl(ctx):
264264
],
265265
)
266266

267+
external_include_paths_feature = feature(
268+
name = "external_include_paths",
269+
flag_sets = [
270+
flag_set(
271+
actions = _all_compile_actions,
272+
flag_groups = [
273+
flag_group(
274+
flags = ["-isystem", "%{external_include_paths}"],
275+
iterate_over = "external_include_paths",
276+
expand_if_available = "external_include_paths",
277+
),
278+
],
279+
),
280+
],
281+
)
282+
267283
return cc_common.create_cc_toolchain_config_info(
268284
ctx = ctx,
269285
toolchain_identifier = ctx.attr.toolchain_identifier,
@@ -284,6 +300,7 @@ def _impl(ctx):
284300
opt_feature,
285301
fastbuild_feature,
286302
generate_linkmap_feature,
303+
external_include_paths_feature,
287304
toolchain_compiler_flags,
288305
cxx_flags,
289306
conly_flags,

0 commit comments

Comments
 (0)