-
-
Notifications
You must be signed in to change notification settings - Fork 227
Experiments with more compiler flags #3998
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: main
Are you sure you want to change the base?
Conversation
|
Running with |
schnellerhase
left a comment
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.
Add the flags to generate-cmakefiles.py and regenerate, for the same behaviour on the C++ demos?
| # Nicer stack traces | ||
| check_cxx_compiler_flag("-fno-omit-frame-pointer" HAVE_NO_OMIT_FRAME_POINTER) | ||
| if(HAVE_NO_OMIT_FRAME_POINTER) | ||
| list(APPEND DOLFINX_CXX_DEVELOPER_FLAGS -fno-omit-frame-pointer) | ||
| endif() | ||
|
|
||
| # Add fast memory error detector | ||
| check_cxx_compiler_flag("-fsanitize=address" HAVE_ADDRESS_SANITIZER) | ||
| if(HAVE_ADDRESS_SANITIZER) | ||
| list(APPEND DOLFINX_CXX_DEVELOPER_FLAGS -fsanitize=address) | ||
| list(APPEND DOLFINX_LINK_DEVELOPER_FLAGS -fsanitize=address) | ||
| endif() | ||
|
|
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.
We should think about a nicer way to maintain these centrally and not twice in cpp and cpp/test.
No description provided.