-
Notifications
You must be signed in to change notification settings - Fork 303
Fixing build for arm64 Windows #582
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
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
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -173,11 +173,13 @@ submitted to the exclusive jurisdiction of the Swedish Courts. | |
| // the source of the functions or the compiled binary code. | ||
| #if defined(_MSC_VER) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can't you say and then let the existing Done the way it is here raises the question for me of how does clang_cl handle the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could do that yeah. An easy refactor for sure.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 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.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| #pragma warning(push) | ||
| #pragma warning(disable: 4100 4244 ) | ||
| #elif __clang__ | ||
| #pragma warning(disable: 4100 4244) | ||
| #endif | ||
| // clang-cl defines both _MSC_VER and __clang__ | ||
| #if __clang__ | ||
| #pragma clang diagnostic push | ||
| #pragma clang diagnostic ignored "-Wunused-parameter" | ||
| #if __clang_major__ > 13 || (__clang_major__ == 13 && __clang_minor__ >= 1) | ||
| #if __has_warning("-Wunused-but-set-variable") | ||
| #pragma clang diagnostic ignored "-Wunused-but-set-variable" | ||
| #endif | ||
| #elif __GNUC__ | ||
|
|
@@ -1862,6 +1864,9 @@ void decompressBlockAlpha16bit(uint8* data, uint8* img, int width, int height, i | |
| // Reenable warnings disabled at the top of this file. | ||
| #if defined(_MSC_VER) | ||
| #pragma warning(pop) | ||
| #else | ||
| #endif | ||
| #if __clang__ | ||
| #pragma clang diagnostic pop | ||
| #elif __GNUC__ | ||
| #pragma GCC diagnostic pop | ||
| #endif | ||
Uh oh!
There was an error while loading. Please reload this page.