-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[benchmark][NFC] Update cc_binary load #169710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@llvm/pr-subscribers-third-party-benchmark Author: Jordan Rupprecht (rupprecht) Changescc_binary now needs to be loaded from the rules_cc repo I don't think this file is actually used, but updating it to be more syntactically correct anyway. Full diff: https://github.com/llvm/llvm-project/pull/169710.diff 1 Files Affected:
diff --git a/third-party/benchmark/bindings/python/build_defs.bzl b/third-party/benchmark/bindings/python/build_defs.bzl
index b0c1b0f5807e3..d520eda616393 100644
--- a/third-party/benchmark/bindings/python/build_defs.bzl
+++ b/third-party/benchmark/bindings/python/build_defs.bzl
@@ -2,6 +2,8 @@
This file contains some build definitions for C++ extensions used in the Google Benchmark Python bindings.
"""
+load("//third_party/bazel_rules/rules_cc/cc:cc_binary.bzl", "cc_binary")
+
_SHARED_LIB_SUFFIX = {
"//conditions:default": ".so",
"//:windows": ".dll",
@@ -10,7 +12,7 @@ _SHARED_LIB_SUFFIX = {
def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []):
for shared_lib_suffix in _SHARED_LIB_SUFFIX.values():
shared_lib_name = name + shared_lib_suffix
- native.cc_binary(
+ cc_binary(
name = shared_lib_name,
linkshared = True,
linkstatic = True,
|
🐧 Linux x64 Test Results
All tests passed but another part of the build failed. Click on a failure below to see the details. tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/CIRGenFunction.cpp.oIf these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the |
cc_binary now needs to be loaded from the rules_cc repo I don't think this file is actually used, but updating it to be more syntactically correct anyway.
cc_binary now needs to be loaded from the rules_cc repo I don't think this file is actually used, but updating it to be more syntactically correct anyway.
cc_binary now needs to be loaded from the rules_cc repo
I don't think this file is actually used, but updating it to be more syntactically correct anyway.