Support non ascii commandline args (#14197)

Using none ASCII chars for protoc on Windows are not handled well.
This adresses argument file at a location where either directory, or filename contains Unicode chars.

Specifically because MsBuild tool saves argument file in with the UserName appended to the .rsp file.
https://github.com/dotnet/msbuild/pull/9232

But in general we should really handle if none ascii chars are in the path.

Closes #14197

COPYBARA_INTEGRATE_REVIEW=https://github.com/protocolbuffers/protobuf/pull/14197 from hknielsen:support-non-ascii-commandline-args 673d575665
PiperOrigin-RevId: 568722987
This commit is contained in:
Harald Kjær Nielsen 2023-09-26 20:10:40 -07:00 committed by Copybara-Service
parent caa462715c
commit 8fc0544228

View file

@ -35,6 +35,7 @@ LINK_OPTS = select({
"//build_defs:config_msvc": [
# Suppress linker warnings about files with no symbols defined.
"-ignore:4221",
"/utf-8",
],
"@platforms//os:macos": [
"-lpthread",