-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Not that it will de-clutter our CI logs very much, but eh, you know.
- Loading branch information
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,10 +21,12 @@ option(SANITIZERS "Build with sanitizers enabled" OFF) # Ignored on MSVC | |
option(MORE_WARNINGS "Turn on more warnings" OFF) # Ignored on MSVC | ||
|
||
if(MSVC) | ||
# MSVC's standard library triggers warning C5105, | ||
# "macro expansion producing 'defined' has undefined behavior" | ||
# MSVC's own standard library triggers warning C5105, | ||
# "macro expansion producing 'defined' has undefined behavior". | ||
# Warning C5030 is about unknown attributes (`[[gnu::ATTR]]`), none of ours being load-bearing. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ISSOtm
Author
Member
|
||
# Warning C4996 is about using POSIX names, which we want to do for portability. | ||
# We also opt into the C++20-conformant preprocessor. | ||
add_compile_options(/MP /wd5105 /Zc:preprocessor) | ||
add_compile_options(/MP /wd5105 /wd5030 /wd4996 /Zc:preprocessor) | ||
add_definitions(/D_CRT_SECURE_NO_WARNINGS) | ||
|
||
if(SANITIZERS) | ||
|
I'd rather have hidden platform-specific attributes behind a macro.