diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel --- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel @@ -195,7 +195,7 @@ "lib/Support/BLAKE3/blake3_avx512_x86-64_unix.S", ], "//conditions:default": [ - ] + ], }), hdrs = glob([ "include/llvm/Support/**/*.h", @@ -221,7 +221,7 @@ ], "//conditions:default": [ "BLAKE3_USE_NEON=0", - ] + ], }) + select({ "@platforms//cpu:x86_64": [ ], @@ -230,7 +230,7 @@ "BLAKE3_NO_AVX512", "BLAKE3_NO_SSE2", "BLAKE3_NO_SSE41", - ] + ], }), includes = ["include"], linkopts = select({ @@ -435,6 +435,9 @@ ]), copts = llvm_copts, deps = [ + ":BinaryFormat", + ":DebugInfoDWARF", + ":Object", ":Support", ":Symbolize", ], @@ -2594,7 +2597,7 @@ src = "cmake/modules/llvm-driver-template.cpp.in", out = "dsymutil-driver.cpp", substitutions = { - "@TOOL_NAME@": "dsymutil" + "@TOOL_NAME@": "dsymutil", }, ) @@ -2698,7 +2701,7 @@ src = "cmake/modules/llvm-driver-template.cpp.in", out = "llvm-ar-driver.cpp", substitutions = { - "@TOOL_NAME@": "llvm_ar" + "@TOOL_NAME@": "llvm_ar", }, ) @@ -2900,7 +2903,7 @@ src = "cmake/modules/llvm-driver-template.cpp.in", out = "llvm-cxxfilt-driver.cpp", substitutions = { - "@TOOL_NAME@": "llvm_cxxfilt" + "@TOOL_NAME@": "llvm_cxxfilt", }, ) @@ -2929,11 +2932,11 @@ copts = llvm_copts, stamp = 0, deps = [ - ":Symbolize", ":BitReader", ":Core", - ":Support", ":Debuginfod", + ":Support", + ":Symbolize", ], ) @@ -3443,11 +3446,10 @@ src = "cmake/modules/llvm-driver-template.cpp.in", out = "llvm-objcopy-driver.cpp", substitutions = { - "@TOOL_NAME@": "llvm_objcopy" + "@TOOL_NAME@": "llvm_objcopy", }, ) - cc_binary( name = "llvm-objcopy", srcs = glob([ diff --git a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h --- a/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h +++ b/utils/bazel/llvm-project-overlay/llvm/include/llvm/Config/llvm-config.h @@ -96,6 +96,9 @@ /* Define if we have curl and want to use it */ /* #undef LLVM_ENABLE_CURL */ +/* Define if we have cpp-httplib and want to use it */ +/* #undef LLVM_ENABLE_HTTPLIB */ + /* Define if LLVM was built with a dependency to the libtensorflow dynamic library */ /* #undef LLVM_HAVE_TF_API */ diff --git a/utils/bazel/llvm_configs/llvm-config.h.cmake b/utils/bazel/llvm_configs/llvm-config.h.cmake --- a/utils/bazel/llvm_configs/llvm-config.h.cmake +++ b/utils/bazel/llvm_configs/llvm-config.h.cmake @@ -89,6 +89,9 @@ /* Define if we have curl and want to use it */ #cmakedefine LLVM_ENABLE_CURL ${LLVM_ENABLE_CURL} +/* Define if we have cpp-httplib and want to use it */ +#cmakedefine LLVM_ENABLE_HTTPLIB ${LLVM_ENABLE_HTTPLIB} + /* Define if zlib compression is available */ #cmakedefine01 LLVM_ENABLE_ZLIB