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.
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
Fixing build for arm64 Windows #582
Fixing build for arm64 Windows #582
Changes from all commits
2966544
6daf650
074db11
6c3a69a
2ac9944
9e469e4
3320e2f
e9a72d1
939896d
ae00016
725dbfe
6289afa
0fcf8de
3e0ee1e
4e32ebe
bbe254a
c968927
eea48f5
bec47b6
c37832a
d2d4df8
d6f530c
bc47e32
03cd58b
2f2cb61
5e49206
c510269
5ab7408
4a5cf09
d9a9949
797eb62
dd9f740
f31c2f4
f3abd1f
be5309b
ed5377a
f28ad63
69eda1d
4fb1e40
275df22
eb77adb
0c22133
7b2b7c0
0f0a146
dad6a93
d8a7080
f968317
9573b99
1c88415
aea3a71
2c4594c
ed4a7c7
cc4035c
fa78044
9d5e784
429d5f1
5557739
41a6e1c
2081778
9294717
f67090b
9fae48c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't you say
and then let the existing
#elif __clang__
handle the clang case?Done the way it is here raises the question for me of how does clang_cl handle the
pragma warning
statements. Does it just ignore them or does it warn about them.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could do that yeah. An easy refactor for sure.
ClangCL does report MSVC's error codes so it does also handle the MSVC specific warning statements. That's why I did it this way, I figured whatever warnings we want to disable for MSVC we also want to disable for ClangCL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you did refactor it.
If CLangCL is handling MSVC specific warnings there shouldn't be any need for the
#pragma clang diagnostic ignored "-Wunused-parameter"
as that is the same as warning 4100 in CL. Because we do need it, it looks like at best#pragma warning
is being ignored. Is CLangCL's handling of#pragma warning
documented somewhere?I agree with the statement "I figured whatever warnings we want to disable for MSVC we also want to disable for ClangCL.". If the original way you did it implements this then restore it but add a comment as to why and about the way CLangCL handles these things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sorry looks like it just ignores them. This current approach works the same as it did before, it's no longer if/else with
_MSC_VER
so we apply msvc style warning pragmas for any compiler that has it defined. It's a little odd to read though so if you want I can make it explicit like I did beforeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way you have it is fine but I suggest adding a comment
// clang_cl defines both _MSC_VER and __clang__
to prevent somebody going down the road of trying#elif
in future.