Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions cc/common/cc_helper.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,6 @@ def _include_dirs(ctx, additional_make_variable_substitutions):
if not sibling_repository_layout and path_contains_up_level_references(includes_path):
fail("Path references a path above the execution root.", attr = "includes")

if includes_path == ".":
fail("'" + includes_attr + "' resolves to the workspace root, which would allow this rule and all of its " +
"transitive dependents to include any file in your workspace. Please include only" +
" what you need", attr = "includes")
result.append(includes_path)

# We don't need to perform the above checks against out_includes_path again since any errors
Expand Down