Skip to content

[sanitizers] Ensure we build LLVM's libunwind with the sanitizers#96

Merged
vitalybuka merged 1 commit intollvm:mainfrom
ldionne:review/sanitizers-add-libunwind
Jan 11, 2024
Merged

[sanitizers] Ensure we build LLVM's libunwind with the sanitizers#96
vitalybuka merged 1 commit intollvm:mainfrom
ldionne:review/sanitizers-add-libunwind

Conversation

@ldionne
Copy link
Member

@ldionne ldionne commented Jan 11, 2024

See llvm/llvm-project#77687 for more details.

@vitalybuka vitalybuka merged commit 10993ce into llvm:main Jan 11, 2024
@ldionne ldionne deleted the review/sanitizers-add-libunwind branch January 11, 2024 21:59
cmake \
${cmake_stage2_common_options} \
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi' \
-DLLVM_ENABLE_RUNTIMES='libcxx;libcxxabi;libunwind' \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you guarantee building libunwind completes before libcxxabi needs the library file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libunwind is included before libcxxabi in runtimes/CMakeLists.txt, so we will definitely know about the target when we are building libcxxabi. Then Ninja (or Make or w/e) is responsible for honoring target-level dependencies.

vitalybuka added a commit that referenced this pull request Jan 12, 2024
llvm/llvm-project#77687 enabled libunwind, but
not all tests pass with sanitizers.

So disable libunwind to investigate.
vitalybuka added a commit that referenced this pull request Jan 12, 2024
Looks like llvm/llvm-project#77689 fixed the issue.

This reverts commit 23cd70e.
vitalybuka added a commit that referenced this pull request Jan 12, 2024
vitalybuka added a commit that referenced this pull request Jan 12, 2024
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