From a059313ff2a47bad388f6e2d9433ed4b1e6578fe Mon Sep 17 00:00:00 2001 From: powderluv Date: Sun, 31 Jul 2022 20:55:58 -0700 Subject: [PATCH] Disable LTC on Release builds --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 85ce480fd914..b9075036ad25 100644 --- a/setup.py +++ b/setup.py @@ -76,6 +76,7 @@ def run(self): 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",