Skip to content

Commit 012b95a

Browse files
committed
test
1 parent ef8be81 commit 012b95a

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ configure_make(
6161
cc_library(
6262
name = "backward",
6363
hdrs = [
64-
"backward.hpp"
64+
"backward.hpp",
6565
],
6666
defines = [
6767
# For binutils
@@ -74,14 +74,14 @@ cc_library(
7474
"-ldl",
7575
"-lz",
7676
],
77-
visibility = ["//visibility:public"],
7877
# For now we support this library for macOS and Linux. Maybe in
7978
# future we will add the support for Windows too.
8079
target_compatible_with = select({
8180
"@platforms//os:osx": [],
8281
"@platforms//os:linux": [],
8382
"//conditions:default": ["@platforms//:incompatible"],
8483
}),
84+
visibility = ["//visibility:public"],
8585
deps = select({
8686
"@bazel_tools//src/conditions:darwin": [
8787
":binutils",

bazel/deps.bzl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,8 @@ filegroup(
1414
"""
1515

1616
def deps(repo_mapping = {}):
17-
rules_foreign_cc_dependencies()
18-
1917
# Get the latest rules for building C/C++ projects.
20-
maybe(
21-
http_archive,
22-
name = "rules_foreign_cc",
23-
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.8.0.tar.gz",
24-
sha256 = "6041f1374ff32ba711564374ad8e007aef77f71561a7ce784123b9b4b88614fc",
25-
strip_prefix = "rules_foreign_cc-0.8.0",
26-
repo_mapping = repo_mapping,
27-
)
18+
rules_foreign_cc_dependencies()
2819

2920
# Get the latest texinfo version. 'binutils' doesn't compile
3021
# without this binary.

bazel/repos.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository")
1313
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
14+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
1415

1516
def repos(external = True, repo_mapping = {}):
1617
maybe(
@@ -30,3 +31,12 @@ def repos(external = True, repo_mapping = {}):
3031
commit = "69449957a41619e9b8b8be2e9bfaca2ac0642760",
3132
shallow_since = "1658132015 +0300",
3233
)
34+
35+
maybe(
36+
http_archive,
37+
name = "rules_foreign_cc",
38+
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/0.9.0.tar.gz",
39+
sha256 = "2a4d07cd64b0719b39a7c12218a3e507672b82a97b98c6a89d38565894cf7c51",
40+
strip_prefix = "rules_foreign_cc-0.9.0",
41+
repo_mapping = repo_mapping,
42+
)

0 commit comments

Comments
 (0)