avoid debug flags spilling into dependent projects#120
Merged
dietmarkuehl merged 1 commit intomainfrom Jan 18, 2025
Merged
Conversation
neatudarius
approved these changes
Jan 18, 2025
Collaborator
|
That isn't a good idea 👎 |
Member
Can you explain? |
Collaborator
|
This disables the project_options completely -> cache, warnings, sanitizer, ...! project_options(
PREFIX
${TARGET_NAME}
ENABLE_CACHE
# NO! # ENABLE_CLANG_TIDY
# NO! ENABLE_VS_ANALYSIS
# ENABLE_INTERPROCEDURAL_OPTIMIZATION
# ENABLE_NATIVE_OPTIMIZATION
# ENABLE_DOXYGEN
# ENABLE_COVERAGE
ENABLE_SANITIZER_ADDRESS
ENABLE_SANITIZER_UNDEFINED
# TODO: ENABLE_SANITIZER_THREAD
# FIXME: on Linux only with clang++? ENABLE_SANITIZER_MEMORY
ENABLE_SANITIZER_POINTER_COMPARE
ENABLE_SANITIZER_POINTER_SUBTRACT
ENABLE_CONTROL_FLOW_PROTECTION
ENABLE_STACK_PROTECTION
ENABLE_OVERFLOW_PROTECTION
# ENABLE_ELF_PROTECTION
# ENABLE_RUNTIME_SYMBOLS_RESOLUTION
# ENABLE_COMPILE_COMMANDS_SYMLINK
# ENABLE_PCH
# PCH_HEADERS
# WARNINGS_AS_ERRORS
# ENABLE_INCLUDE_WHAT_YOU_USE
# ENABLE_GCC_ANALYZER
# ENABLE_BUILD_WITH_TIME_TRACE
# TODO: buggy! ENABLE_UNITY
# LINKER "lld"
) |
Member
Author
|
I agree that this isn't the correct approach. I had tried quite a while to find a way to build a dependent project (https://github.com/bemanproject/lazy ) with TSAN but I didn't manage to not have other sanitizers desabled. Disabling this block did it. It should be restored but in a way which is compatible with dependent projects. I'm not a |
Member
|
I propose to move the discussion into a new issue, which can be a follow-up task. |
dietmarkuehl
added a commit
that referenced
this pull request
Jan 21, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.