File tree Expand file tree Collapse file tree
src/main/starlark/builtins_bzl/common/cc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717load (":common/cc/cc_common.bzl" , "cc_common" )
1818load (":common/cc/cc_helper.bzl" , "cc_helper" )
19+ load (":common/cc/semantics.bzl" , "USE_EXEC_ROOT_FOR_VIRTUAL_INCLUDES_SYMLINKS" )
1920load (":common/paths.bzl" , "paths" )
2021
2122cc_internal = _builtins .internal .cc_internal
@@ -120,7 +121,7 @@ def _compute_public_headers(
120121 output = virtual_header ,
121122 target_file = original_header ,
122123 progress_message = "Symlinking virtual headers for " + label .name ,
123- use_exec_root_for_source = True ,
124+ use_exec_root_for_source = USE_EXEC_ROOT_FOR_VIRTUAL_INCLUDES_SYMLINKS ,
124125 )
125126 module_map_headers .append (virtual_header )
126127 if config .coverage_enabled :
Original file line number Diff line number Diff line change 1414
1515"""Semantics for Bazel cc rules"""
1616
17+ # Point virtual includes symlinks to the source root for better IDE integration.
18+ # See https://github.com/bazelbuild/bazel/pull/20540.
19+ # TODO: b/320980684 - Add a test that fails if this is flipped to True.
20+ USE_EXEC_ROOT_FOR_VIRTUAL_INCLUDES_SYMLINKS = False
21+
1722def _get_proto_aspects ():
1823 return []
1924
You can’t perform that action at this time.
0 commit comments