Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle empty output from vswhere.exe #1159

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

yukawa
Copy link
Collaborator

@yukawa yukawa commented Jan 8, 2025

Description

This is a follow up commit to my previous commit (ace3145), which started using 'vswhere.exe' to locate vcvarsall.bat as discussed in #1057.

One thing I overlooked is that vswhere.exe could return an empty result even when the exitcode is ERROR_SUCCESS. With this commit such a case will be gracefully handled.

This is also a preparation to support ARM64 build on Windows (#1130).

Issue IDs

Steps to test new behaviors (if any)

  • OS: Windows 11
  • Steps:
    1. You can still build Mozc with both GYP and Bazel.

This is a follow up commit to my previous commit [1], which started
using 'vswhere.exe' to locate 'vcvarsall.bat' as discussed in google#1057.

One thing I overlooked is that 'vswhere.exe' could return an empty
result even when the exitcode is ERROR_SUCCESS. With this commit such a
case will be gracefully handled.

This is also a preparation to support ARM64 build on Windows (google#1130).

 [1]: ace3145
@hiroyuki-komatsu hiroyuki-komatsu merged commit 6a64efa into google:master Jan 9, 2025
1 check passed
@hiroyuki-komatsu
Copy link
Collaborator

We have merged your PR.
Thank you for the contribution!

@yukawa yukawa deleted the gyp_win_arm64_3 branch January 9, 2025 09:25
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.

2 participants