diff --git a/scripts/build-circt-from-source.sh b/scripts/build-circt-from-source.sh index 596e24de..d1afb6ab 100755 --- a/scripts/build-circt-from-source.sh +++ b/scripts/build-circt-from-source.sh @@ -75,7 +75,8 @@ echo "Building CIRCT's LLVM/MLIR" -DLLVM_TARGETS_TO_BUILD="host" \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ + -DCMAKE_EXE_LINKER_FLAGS="-L$RDIR/.conda-env/lib" ninja ) @@ -90,7 +91,8 @@ echo "Building CIRCT" -DLLVM_DIR=$RDIR/tools/circt/llvm/build/lib/cmake/llvm \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_INSTALL_PREFIX=$PREFIX + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_EXE_LINKER_FLAGS="-L$RDIR/.conda-env/lib" ninja )