Skip to content

Commit e3194e3

Browse files
committed
Another attempted fix
1 parent fc8afc3 commit e3194e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/wasi-sdk-toolchain.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ ExternalProject_Add(llvm-build
171171
# Pass `-s` to strip symbols by default and shrink the size of the
172172
# distribution
173173
-DCMAKE_EXE_LINKER_FLAGS=-s
174+
# Looks to be required on macOS for, at build time, the dynamic linker to
175+
# find `libedit.dylib` when that's enabled.
176+
-DCMAKE_BUILD_RPATH=${wasi_tmp_install}/lib
174177
${llvm_cmake_flags_list}
175178
# See https://www.scivision.dev/cmake-externalproject-list-arguments/ for
176179
# why this is in `CMAKE_CACHE_ARGS` instead of above

0 commit comments

Comments
 (0)