mirror of
https://github.com/github/codeql.git
synced 2026-02-23 18:33:42 +01:00
refactor: migrate Starlark files to explicit rules_cc imports
Bazel 9 removes native.cc_* and CcInfo from global scope. Update: - swift/rules.bzl: Add cc_binary, cc_library, CcInfo imports; use explicit cc_binary/cc_library instead of native.cc_* - misc/bazel/cmake/cmake.bzl: Add CcInfo import for provider usage
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
|
||||
|
||||
CmakeInfo = provider(
|
||||
fields = {
|
||||
"name": "",
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
|
||||
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
|
||||
load("//misc/bazel:os.bzl", "os_select")
|
||||
|
||||
# TODO: make a shared library with the internal repos for transitions
|
||||
@@ -124,7 +126,7 @@ def _wrap_cc(rule, kwargs):
|
||||
)
|
||||
|
||||
def swift_cc_binary(**kwargs):
|
||||
_wrap_cc(native.cc_binary, kwargs)
|
||||
_wrap_cc(cc_binary, kwargs)
|
||||
|
||||
def swift_cc_library(**kwargs):
|
||||
_wrap_cc(native.cc_library, kwargs)
|
||||
_wrap_cc(cc_library, kwargs)
|
||||
|
||||
Reference in New Issue
Block a user