-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
VS: Add support for /utf-8 #13929
Draft
lb90
wants to merge
7
commits into
mesonbuild:master
Choose a base branch
from
lb90:vs-backend-utf8
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
VS: Add support for /utf-8 #13929
+158
−59
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lb90
force-pushed
the
vs-backend-utf8
branch
from
November 21, 2024 10:58
6991a4f
to
7f9ea38
Compare
lb90
force-pushed
the
vs-backend-utf8
branch
2 times, most recently
from
November 22, 2024 18:07
f498add
to
5d9a838
Compare
Some arguments correspond to MSBuild properties ($(VCTargetsPath)\Microsoft.cpp*.props), for example: * /EH: <ExceptionHandling> * /O: <Optimization> * etc. The ones which have no corresponding property must be specified via <AdditionalOptions>.
Otherwise it's going to be modified (e.g in the vs generator)
We're going to add /utf-8 back in subsequent commit
Thisi can be used to add default args. Unlike always args, default args can be overriden.
lb90
force-pushed
the
vs-backend-utf8
branch
from
November 25, 2024 11:49
5d9a838
to
5374e76
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR does a few things:
<AdditionalOptions>
(under<ClCompile>
and<Link>
, respectively)Compiler.add_default_args(CompileArgs)
method and make all backends (ninja, xcode, vs) honour that. It's used to append Meson default arguments (at last, before the link args) in a transparent manner, so Meson's default arguments can be overriden by the user./utf-8
from theMSVCCompiler
's always args toVisualStudioLikeCompiler.add_default_args(CompileArgs)
MSVCCompiler.get_always_args()
returning a reference to its internal data rather than a copyFixes #13860