github.com/distbuild/reclient@v0.0.0-20240401075343-3de72e395564/third_party/patches/llvm/llvm-project-overlay-driver.patch (about) 1 diff --git a/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl b/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl 2 --- a/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl (revision e2b7481ea712878b167920a5174d23071e8ff70b) 3 +++ b/utils/bazel/llvm-project-overlay/llvm/tblgen.bzl (date 1705732595364) 4 @@ -47,7 +47,7 @@ 5 outs = [out], 6 tools = [tblgen], 7 message = "Generating code from table: %s" % td_file, 8 - cmd = (("$(location %s) -I %s/llvm/include " + 9 + cmd = (("export PATH=$$PATH:/c/tools/msys64/mingw64/bin; $(location %s) -I %s/llvm/include " + 10 "-I %s/clang/include " + 11 "-I $$(dirname $(location %s)) " + 12 "%s $(location %s) %s -o $@") % ( 13 14 diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel 15 --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel (revision e2b7481ea712878b167920a5174d23071e8ff70b) 16 +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel (date 1705595523961) 17 @@ -649,6 +649,13 @@ 18 "utils/TableGen/VTEmitter.cpp", 19 ], 20 copts = llvm_copts, 21 + linkopts = select({ 22 + "@bazel_tools//src/conditions:windows": [ 23 + "-luuid", 24 + "-lole32", 25 + ], 26 + "//conditions:default": ["-ldl"], 27 + }), 28 stamp = 0, 29 deps = [ 30 ":Support", 31 @@ -1214,6 +1221,13 @@ 32 33 gentbl( 34 name = "RISCVTargetParserDefGen", 35 + linkopts = select({ 36 + "@bazel_tools//src/conditions:windows": [ 37 + "-luuid", 38 + "-lole32", 39 + ], 40 + "//conditions:default": ["-ldl"], 41 + }), 42 tbl_outs = [("-gen-riscv-target-def", "include/llvm/TargetParser/RISCVTargetParserDef.inc")], 43 tblgen = ":llvm-min-tblgen", 44 td_file = "lib/Target/RISCV/RISCV.td",