[Mlir-commits] [llvm] [mlir] [MLIR][Bazel] correctly fix bazel build (PR #160539)
Maksim Levental
llvmlistbot at llvm.org
Wed Sep 24 07:51:17 PDT 2025
https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/160539
https://github.com/llvm/llvm-project/pull/160508 wasn't the correct fix - the fix just disabled the test because https://github.com/llvm/llvm-project/blob/59e74a0749203998b3e5fd9bc6525de148db28ab/mlir/test/Examples/standalone/lit.local.cfg#L18 is now always `False` (if not "0" is always `False`). This PR is the correct fix.
>From 090bdfc6250517c6835d53b862971c8ab694338d Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Wed, 24 Sep 2025 07:47:24 -0700
Subject: [PATCH 1/2] Revert "[mlir] Fix bazel after `59e74a0`. (#160508)"
This reverts commit 2d6ce5148cf144ab800116e1f75a5d007e82cf58.
---
mlir/test/lit.site.cfg.py.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mlir/test/lit.site.cfg.py.in b/mlir/test/lit.site.cfg.py.in
index c7a0bbe114fe2..1aaf7989e3ce5 100644
--- a/mlir/test/lit.site.cfg.py.in
+++ b/mlir/test/lit.site.cfg.py.in
@@ -60,7 +60,7 @@ config.mlir_run_cuda_sm80_tests = @MLIR_RUN_CUDA_SM80_TESTS@
config.mlir_run_cuda_sm80_lt_tests = @MLIR_RUN_CUDA_SM80_LT_TESTS@
config.mlir_run_cuda_sm90_tests = @MLIR_RUN_CUDA_SM90_TESTS@
config.mlir_include_integration_tests = @MLIR_INCLUDE_INTEGRATION_TESTS@
-config.llvm_shared_libs_build = "@BUILD_SHARED_LIBS@"
+config.llvm_shared_libs_build = @BUILD_SHARED_LIBS@
config.arm_emulator_executable = "@ARM_EMULATOR_EXECUTABLE@"
# Some tests marked with 'UNSUPPORTED: target=aarch64{{.*}}' are still run when
# configured with ARM_EMULATOR_EXECUTABLE and the default target is not aarch64.
>From 97743f70a85f568fb071e0fe2489aadca9d1168c Mon Sep 17 00:00:00 2001
From: makslevental <maksim.levental at gmail.com>
Date: Wed, 24 Sep 2025 07:49:23 -0700
Subject: [PATCH 2/2] [MLIR][Bazel] correctly fix bazel build
---
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 469fcee8d9748..253d749ec6a5c 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -57,6 +57,7 @@ expand_template(
"@MLIR_RUN_CUDA_SM80_LT_TESTS@": "0",
"@MLIR_RUN_CUDA_SM90_TESTS@": "0",
"@MLIR_INCLUDE_INTEGRATION_TESTS@": "0",
+ "@BUILD_SHARED_LIBS@": "0",
"@SHLIBDIR@": package_path("//llvm:BUILD"),
},
template = "lit.site.cfg.py.in",
More information about the Mlir-commits
mailing list