Skip to content

chore: reorder if clauses in _init_cc_compilation_context - #799

Open
eric-wieser wants to merge 1 commit into
bazelbuild:mainfrom
eric-wieser:patch-1
Open

chore: reorder if clauses in _init_cc_compilation_context#799
eric-wieser wants to merge 1 commit into
bazelbuild:mainfrom
eric-wieser:patch-1

Conversation

@eric-wieser

@eric-wieser eric-wieser commented Jul 20, 2026

Copy link
Copy Markdown

This makes them more closely resemble the ifs below in the same file. The logic is unchanged.

This makes them more closely resemble the `if`s` below.
The logic is unchanged.
Comment on lines 517 to 520
if external or feature_configuration.is_requested("system_include_paths"):
external_include_dirs.append(textual_headers.virtual_include_path)
else:
include_dirs_for_context.append(textual_headers.virtual_include_path)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the logic the new order is closer to mirroring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants