Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,5 @@ format_test(

copyright_checker(
name = "copyright",
# srcs = [
# ".github",
# "docs",
# "examples",
# "packages",
# "rules",
# "templates",
# "tests",
# "tools",
# "//:BUILD",
# "//:MODULE.bazel",
# ],
visibility = ["//visibility:public"],
)
17 changes: 0 additions & 17 deletions rules/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,6 @@ def get_flag_groups(flags):
return "[flag_group(flags = [" + ", ".join(['"%s"' % f for f in flags]) + "])]"
return "[]"

def get_flag_group(flags):
"""Helper function to create a flag_group.

Args:
flags (list[str]): A list of compiler or linker flags.

Returns:
flag_group: A Bazel flag_group object containing the provided flags.
"""
if len(flags):
return [
flag_group(
flags = flags,
),
]
return []

def label_list_to_string(input_list):
""" Small helper function to transform label list into string list

Expand Down
12 changes: 9 additions & 3 deletions rules/gcc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,16 @@ cc_toolchain_config(
tc_extra_enabled_features = label_list_to_string(rctx.attr.extra_enabled_features),
)

def get_custom_cc_features_linux(rctx):
return ""

def get_custom_cc_features_qnx(rctx, canonical_pkg_name):
"""Returns the QNX-specific feature loads and generated feature declarations.

Args:
rctx: RepositoryContext object with toolchain attributes.
canonical_pkg_name: Canonical repository name of the toolchain package.

Returns:
A tuple of the Starlark load statements and feature declarations.
"""
# sdp_env's host_dir/target_dir must be plain resolved paths, not labels:
# cc_args' `env` rejects format() variables that aren't builtin cc_toolchain
# variables ("The variable host_dir does not exist").
Expand Down
2 changes: 1 addition & 1 deletion tests/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading