-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
43 lines (40 loc) · 1004 Bytes
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
bazel_dep(
name = "buildifier_prebuilt",
version = "7.3.1",
dev_dependency = True,
)
bazel_dep(
name = "bazel_skylib",
version = "1.7.1",
dev_dependency = True,
)
bazel_dep(
name = "rules_cc",
version = "0.0.12",
dev_dependency = True,
)
bootlin_toolchains = use_extension(
"//toolchain/bootlin_gcc:extension.bzl",
"bootlin_toolchains_extension",
)
bootlin_toolchains.configure(
name = "gcc_toolchain",
cxx_flags = ["-std=c++17"],
)
use_repo(bootlin_toolchains, "gcc_toolchain")
#http_archive = use_repo_rule(
# "@bazel_tools//tools/build_defs/repo:http.bzl",
# "http_archive",
#)
#
#http_archive(
# name = "crosstoolNG_gcc",
# build_file = "//toolchain/crosstoolNG_gcc:BUILD.tmpl.bazel",
# sha256 = "...",
# strip_prefix = "x86_64-unknown-linux-gnu",
# url = "http://.../x86_64-unknown-linux-gnu.tar.bz2",
#)
register_toolchains(
"@gcc_toolchain//:gcc_13.3.0_toolchain",
#"//toolchain/crosstoolNG_gcc:gcc_toolchain",
)