[lldb-dev] Tips for building with LLVM_LINK_LLVM_DYLIB=ON
Tom Stellard via lldb-dev
lldb-dev at lists.llvm.org
Fri Aug 11 21:50:18 PDT 2017
Hi,
We've been having trouble with some strange lldb failures when building lldb
with -DLLVM_LINK_LLVM_DYLIB=ON. For example, this command segfaults
with -DLLVM_LINK_LLVM_DYLIB=ON but not if we omit that option:
echo "int main(void) { return 0; }" | gcc -x c -g - && \
lldb -b a.out -o 'b main' -o 'r' -o 'expr printf("hello")'
Does anyone have a working LLVM_LINK_LLVM_DYLIB=ON build and if so,
could you share the cmake flags you are using?
These are the flags that I used:
-DBUILD_SHARED_LIBS:BOOL=OFF
-DCMAKE_BUILD_TYPE=Release
-DLLVM_ENABLE_ASSERTIONS=ON
-DLLVM_BUILD_LLVM_DYLIB=ON
-DLLVM_LINK_LLVM_DYLIB=ON
Thanks,
Tom
More information about the lldb-dev
mailing list