-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[libc] Make LIBC_MATH_NO_ERRNO imply -fno-math-errno
#125794
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 1 commit
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 |
|---|---|---|
| @@ -1,11 +1,6 @@ | ||
| function(_get_common_test_compile_options output_var c_test flags) | ||
| _get_compile_options_from_flags(compile_flags ${flags}) | ||
|
|
||
| # Remove -fno-math-errno if it was added. | ||
| if(LIBC_ADD_FNO_MATH_ERRNO) | ||
| list(REMOVE_ITEM compile_options "-fno-math-errno") | ||
|
||
| endif() | ||
|
|
||
| set(compile_options | ||
| ${LIBC_COMPILE_OPTIONS_DEFAULT} | ||
| ${LIBC_TEST_COMPILE_OPTIONS_DEFAULT} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this to L101-ish, where
LIBC_CONF_MATH_OPTIMIZATIONSis checked?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.