[clang] [Clang-REPL] Fix crash during `__run_exit_handlers` with dynamic libraries. (PR #117475)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 01:09:44 PST 2024
SahilPatidar wrote:
I have added a test, but it should only run on Darwin (macOS) platforms.
```cpp
// REQUIRES: host-supports-jit
// RUN: cat %s | env SDKROOT=$(xcrun --show-sdk-path) DYLD_LIBRARY_PATH=%S/Inputs:$DYLD_LIBRARY_PATH clang-repl
%lib vec.dylib
#include <vector>
std::vector<int> v;
%quit
```
https://github.com/llvm/llvm-project/pull/117475
More information about the cfe-commits
mailing list