-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Allow non-strict aliasing and overflow optimizations (#1752)
Non-strict aliasing is found to resolve #1737. We also use signed integer overflow around ares, so we want to allow the compiler to optimize for that if it wants to; essentially everywhere ares runs is two's complement. Couple quirks: Xcode has its own declaration for strict aliasing, so use that. Clang-CL doesn't transparently accept `-fwrapv`, so it's passed with `/clang:-fwrapv`. `_ares_gcc_common_options` will eventually see more development to make warnings consistent across platforms where possible. (Fixes #1737)
- Loading branch information
Showing
5 changed files
with
27 additions
and
2 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
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
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
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
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