Skip to content

Commit 02ae1f8

Browse files
committed
Explicitly disable use of libedit, zlib, terminfo and libxml2 in LLVM builds.
These libs are not used by current official CppSharp binary distributions of LLVM, however building LLVM locally will pick these libs up and link to them if they are installed on local system. Since premake does not link to any of those libs linking to local LLVM build will cause `DllNotFoundException` due to missing symbols.
1 parent e75e96b commit 02ae1f8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/scripts/LLVM.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ function cmake(gen, conf, builddir, options)
183183
or "cmake"
184184
local cmd = cmake .. " -G " .. '"' .. gen .. '"'
185185
.. ' -DLLVM_BUILD_TOOLS=false '
186+
.. ' -DLLVM_ENABLE_LIBEDIT=false'
187+
.. ' -DLLVM_ENABLE_ZLIB=false'
188+
.. ' -DLLVM_ENABLE_TERMINFO=false'
189+
.. ' -DLLVM_ENABLE_LIBXML2=false'
186190
.. ' -DLLVM_INCLUDE_EXAMPLES=false '
187191
.. ' -DLLVM_INCLUDE_DOCS=false '
188192
.. ' -DLLVM_INCLUDE_TESTS=false'

0 commit comments

Comments
 (0)