From 72f785c4b2953412e1f942f746dbee38bc2155ae Mon Sep 17 00:00:00 2001 From: Stella Laurenzo Date: Fri, 22 Jan 2021 16:30:23 -0800 Subject: [PATCH] Update install_mlir.sh to take extra configure flags. --- build_tools/install_mlir.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build_tools/install_mlir.sh b/build_tools/install_mlir.sh index 65d384838..acb982d72 100755 --- a/build_tools/install_mlir.sh +++ b/build_tools/install_mlir.sh @@ -60,13 +60,10 @@ if [ -z "$python_exe" ]; then exit 1 fi -# TODO: Make it possible to build without an RTTI compiled LLVM. There are -# a handful of vague linkage issues that need to be fixed upstream. cmake -GNinja \ "-H$LLVM_SRC_DIR/llvm" \ "-B$build_mlir" \ -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE \ - "-DPYTHON_EXECUTABLE=$python_exe" \ "-DPython3_EXECUTABLE=$python_exe" \ -DLLVM_BUILD_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ @@ -78,6 +75,7 @@ cmake -GNinja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DLLVM_USE_SPLIT_DWARF=ON \ -DLLVM_ENABLE_ASSERTIONS=On \ - -DMLIR_BINDINGS_PYTHON_ENABLED=ON + -DMLIR_BINDINGS_PYTHON_ENABLED=ON \ + "$@" cmake --build "$build_mlir" --target install