-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_polyfill: Make PW_CONSTINIT support mandatory
- Use GCC's __constinit starting from GCC 10, when it was introduced. - Because constinit is used to avoid the static initialization order fiasco, it may not be safe to compile with PW_CONSTINIT if the compiler does not support it. Fail if PW_CONSTINIT is used without compiler support. Change-Id: Ia017163dad0ff6e743174c07d4772ccfaa6a2f2e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/243892 Reviewed-by: Taylor Cramer <[email protected]> Lint: Lint 🤖 <[email protected]> Commit-Queue: Wyatt Hepler <[email protected]> Pigweed-Auto-Submit: Wyatt Hepler <[email protected]>
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 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