-
Notifications
You must be signed in to change notification settings - Fork 603
i#7493 GCC-15: Specify language dialect when checking type existence #7494
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -797,6 +797,8 @@ if (UNIX) # unlikely to be an issue on Windows | |
| # and set DR_DO_NOT_DEFINE_* | ||
|
Contributor
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.
spelling: dialect |
||
| # Note that for later gcc uint and ushort seem to be "soft typedefs": | ||
| # defined, but overridable: ?!? | ||
| set(CMAKE_ORIG_C_FLAGS "${CMAKE_C_FLAGS}") | ||
| set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") | ||
|
Contributor
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. If the issue is that gnu99 is not passed everywhere, shouldn't we solve that? Adding this temporary gnu99 just for these checks does not seem the best approach. There is also no comment here explaining why we'd set a flag and then unset it so this going to be confusing to future readers without explanation. |
||
| include(CheckTypeSize) | ||
| CHECK_TYPE_SIZE(uint DR_DO_NOT_DEFINE_uint) | ||
| CHECK_TYPE_SIZE(ushort DR_DO_NOT_DEFINE_ushort) | ||
|
|
@@ -821,6 +823,7 @@ if (UNIX) # unlikely to be an issue on Windows | |
| message(FATAL_ERROR "incompatible \"_Bool\" type is larger than 1 byte") | ||
| endif (NOT ${DR__Bool_EXISTS} EQUAL 1) | ||
| endif (DR__Bool_EXISTS) | ||
| set(CMAKE_C_FLAGS "${CMAKE_ORIG_C_FLAGS}") | ||
| endif (UNIX) | ||
|
|
||
| ########################################################################### | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.