[clang] [Clang-REPL] Fix crash during `__run_exit_handlers` with dynamic libraries. (PR #117475)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 25 03:20:18 PST 2024
vgvassilev wrote:
> I have added a test, but it should only run on Darwin (macOS) platforms.
>
> ```c++
> // 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
> ```
In this case we will need an extra requires clause. Also I do not think we need the xcrun. There was some way to make a library out of yaml, you can look in the list of tests what it was. Maybe that’s useful.
https://github.com/llvm/llvm-project/pull/117475
More information about the cfe-commits
mailing list