[PATCH] D144212: [Bazel][mlir] Fix build errors
Pranav Kant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 12:18:15 PST 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf83e6c6d7a8d: [Bazel][mlir] Fix build errors (authored by pranavk).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144212/new/
https://reviews.llvm.org/D144212
Files:
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -13,12 +13,21 @@
licenses(["notice"])
+LLVM_LIT_PATH_FUNCTION = " " + \
+ "# Allow generated file to be relocatable.\n" + \
+ "from pathlib import Path\n" + \
+ "def path(p):\n" + \
+ " if not p: return ''\n" + \
+ " return str((Path(__file__).parent / p).resolve())\n"
+
+LIT_SITE_CFG_IN_HEADER = "# Autogenerated, do not edit." + LLVM_LIT_PATH_FUNCTION
+
expand_template(
name = "lit_site_cfg_py",
testonly = True,
out = "lit.site.cfg.py",
substitutions = {
- "@LIT_SITE_CFG_IN_HEADER@": "# Autogenerated, do not edit.",
+ "@LIT_SITE_CFG_IN_HEADER@": LIT_SITE_CFG_IN_HEADER,
"@LLVM_TOOLS_DIR@": package_path("//llvm:BUILD"),
"@ENABLE_SHARED@": "1",
"@ENABLE_ASSERTIONS@": "1",
@@ -39,6 +48,7 @@
"@MLIR_RUN_X86VECTOR_TESTS@": "0",
"@MLIR_RUN_CUDA_TENSOR_CORE_TESTS@": "0",
"@MLIR_INCLUDE_INTEGRATION_TESTS@": "0",
+ "@SHLIBDIR@": package_path("//llvm:BUILD"),
},
template = "lit.site.cfg.py.in",
)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144212.498119.patch
Type: text/x-patch
Size: 1283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/e220d8b1/attachment.bin>
More information about the llvm-commits
mailing list