From 758c62e5bab6cf2a16ad3757f4720b96e82c674e Mon Sep 17 00:00:00 2001 From: saienduri <77521230+saienduri@users.noreply.github.com> Date: Mon, 11 Mar 2024 03:30:13 -0700 Subject: [PATCH] Update build_posix.sh --- build_tools/ci/build_posix.sh | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/build_tools/ci/build_posix.sh b/build_tools/ci/build_posix.sh index f3cdf86d9a57e..b370d0ba80b83 100755 --- a/build_tools/ci/build_posix.sh +++ b/build_tools/ci/build_posix.sh @@ -23,8 +23,6 @@ python="$(which python)" echo "Using python: $python" export CMAKE_TOOLCHAIN_FILE="$this_dir/linux_default_toolchain.cmake" -export CC=clang -export CXX=clang++ cd $repo_root @@ -32,17 +30,12 @@ echo "::group::CMake configure" cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \ -GNinja \ -DCMAKE_BUILD_TYPE=Release \ - -DPython3_EXECUTABLE="$(which python)" \ - -DLLVM_ENABLE_ASSERTIONS=ON \ - -DTORCH_MLIR_ENABLE_WERROR_FLAG=ON \ - -DCMAKE_INSTALL_PREFIX="$install_dir" \ - -DCMAKE_INSTALL_LIBDIR=lib \ + -DPython3_FIND_VIRTUALENV=ONLY \ -DLLVM_ENABLE_PROJECTS=mlir \ -DLLVM_EXTERNAL_PROJECTS="torch-mlir" \ - -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$repo_root" \ - -DLLVM_TARGETS_TO_BUILD=host \ + -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$PWD" \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ - -DTORCH_MLIR_ENABLE_LTC=ON + -DLLVM_TARGETS_TO_BUILD=host echo "::endgroup::" echo "::group::Build"