Skip to content

Only use /showIncludes if supported#19497

Closed
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:showincludes
Closed

Only use /showIncludes if supported#19497
fmeum wants to merge 1 commit intobazelbuild:masterfrom
fmeum:showincludes

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Sep 12, 2023

The auto-configured Windows toolchain now only enables /showIncludes if the English language pack for VS is installed and the compiler language can thus be forced to be English. Other languages may use encodings other than ASCII or UTF-8 and thus fail to be recognized by Bazel's ShowInputFilter. A warning with a suggested fix is shown if this fails.

See #19451
Fixes #19439

RELNOTES: Compilation actions using the auto-configured MSVC toolchain are forced to emit error messages in English if the English language pack for Visual Studio is installed.

@fmeum fmeum requested a review from meteorcloudy September 12, 2023 15:49
@fmeum fmeum marked this pull request as ready for review September 12, 2023 15:49
@fmeum fmeum requested a review from lberki as a code owner September 12, 2023 15:49
@fmeum fmeum removed the request for review from lberki September 12, 2023 15:49
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Rules-CPP Issues for C++ rules labels Sep 12, 2023
@fmeum
Copy link
Copy Markdown
Collaborator Author

fmeum commented Sep 12, 2023

CC @kkpattern @konste Could you test this?

@kkpattern
Copy link
Copy Markdown
Contributor

Sure, I'll test this branch later.

Copy link
Copy Markdown
Member

@meteorcloudy meteorcloudy left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!!

@meteorcloudy meteorcloudy added awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally and removed awaiting-review PR is awaiting review from an assigned reviewer labels Sep 13, 2023
@github-actions github-actions bot removed the awaiting-PR-merge PR has been approved by a reviewer and is ready to be merge internally label Sep 14, 2023
@fmeum fmeum deleted the showincludes branch September 14, 2023 11:32
@fmeum
Copy link
Copy Markdown
Collaborator Author

fmeum commented Sep 14, 2023

@bazel-io flag

@bazel-io bazel-io added the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Sep 14, 2023
@meteorcloudy
Copy link
Copy Markdown
Member

@bazel-io fork 6.4.0

@bazel-io bazel-io removed the potential release blocker Flagged by community members using "@bazel-io flag". Should be added to a release blocker milestone label Sep 14, 2023
bazel-io pushed a commit to bazel-io/bazel that referenced this pull request Sep 14, 2023
The auto-configured Windows toolchain now only enables `/showIncludes` if the English language pack for VS is installed and the compiler language can thus be forced to be English. Other languages may use encodings other than ASCII or UTF-8 and thus fail to be recognized by Bazel's `ShowInputFilter`. A warning with a suggested fix is shown if this fails.

See bazelbuild#19451
Fixes bazelbuild#19439

RELNOTES: Compilation actions using the auto-configured MSVC toolchain are forced to emit error messages in English if the English language pack for Visual Studio is installed.

Closes bazelbuild#19497.

PiperOrigin-RevId: 565251294
Change-Id: I926c484c21310ee4d7b5e8d5756cb61e45d6e6ac
meteorcloudy pushed a commit that referenced this pull request Sep 14, 2023
The auto-configured Windows toolchain now only enables `/showIncludes`
if the English language pack for VS is installed and the compiler
language can thus be forced to be English. Other languages may use
encodings other than ASCII or UTF-8 and thus fail to be recognized by
Bazel's `ShowInputFilter`. A warning with a suggested fix is shown if
this fails.

See #19451
Fixes #19439

RELNOTES: Compilation actions using the auto-configured MSVC toolchain
are forced to emit error messages in English if the English language
pack for Visual Studio is installed.

Closes #19497.

Commit
0f10359

PiperOrigin-RevId: 565251294
Change-Id: I926c484c21310ee4d7b5e8d5756cb61e45d6e6ac

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Rules-CPP Issues for C++ rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cc_libaray target won't be rebuilt when header files are modified

4 participants