Skip to content

Conversation

@jhale
Copy link
Member

@jhale jhale commented Nov 20, 2025

No description provided.

@jhale
Copy link
Member Author

jhale commented Nov 20, 2025

Running with -fsanitize=address and -fno-omit-frame-pointer leads to no appreciable increase in compile or test time (although, these are not yet propagated to Python interface).

@jhale jhale marked this pull request as ready for review November 20, 2025 14:40
Copy link
Contributor

@schnellerhase schnellerhase left a 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?

Comment on lines +26 to +38
# 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()

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants