Commit e38dddf8 authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

community/ldc: specify LLVM_ROOT_DIR

The default LLVM is LLVM12, but this builds against LLVM11. Provide the
LLVM_ROOT_PATH explicitly so that `llvm-config` can be found.
parent 6f637e7a
......@@ -40,6 +40,7 @@ build() {
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
-DD_COMPILER='gdmd' \
-DLLVM_ROOT_DIR="/usr/lib/llvm11" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-linker=bfd", "-link-defaultlib-shared"' \
$CMAKE_CROSSOPTS -S "$builddir" -B "$builddir/stage1"
make -C "$builddir/stage1"
......@@ -60,6 +61,7 @@ build() {
-DD_COMPILER="$builddir/stage1/bin/ldmd2" \
-DC_SYSTEM_LIBS="unwind;m;pthread;rt;dl" \
-DADDITIONAL_DEFAULT_LDC_SWITCHES=' "-linker=bfd", "-link-defaultlib-shared"' \
-DLLVM_ROOT_DIR="/usr/lib/llvm11" \
$CMAKE_CROSSOPTS "$builddir"
make
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment