[PATCH] D144212: [Bazel][mlir] Fix build errors
Pranav Kant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 11:58:47 PST 2023
pranavk created this revision.
Herald added subscribers: Moerafaat, zero9178, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik, mgester, arpith-jacob, antiagainst, shauheen, rriddle, mehdi_amini, thopre.
Herald added a project: All.
pranavk requested review of this revision.
Herald added subscribers: llvm-commits, stephenneuendorffer, nicolasvasilache.
Herald added a project: LLVM.
Fallback from https://reviews.llvm.org/D143925
Repository:
rG LLVM Github Monorepo
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.498114.patch
Type: text/x-patch
Size: 1283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/7ddccb5d/attachment.bin>
More information about the llvm-commits
mailing list