From 30017af5b54b6eb628786892727aa14e190eaff7 Mon Sep 17 00:00:00 2001 From: powderluv Date: Sun, 31 Jul 2022 20:58:29 -0700 Subject: [PATCH] Disable LTC on Release builds (#1125) --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 85ce480fd..b9075036a 100644 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ class CMakeBuild(build_py): f"-DMLIR_ENABLE_BINDINGS_PYTHON=ON", f"-DLLVM_ENABLE_PROJECTS=mlir", f"-DTORCH_MLIR_ENABLE_MHLO=ON", + f"-DTORCH_MLIR_ENABLE_LTC=OFF", f"-DLLVM_EXTERNAL_PROJECTS=torch-mlir;torch-mlir-dialects", f"-DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR={src_dir}", f"-DLLVM_EXTERNAL_TORCH_MLIR_DIALECTS_SOURCE_DIR={src_dir}/externals/llvm-external-projects/torch-mlir-dialects",