Skip to content

Commit e45a42b

Browse files
ltekielidraganbjedov
authored andcommitted
Add ITF toolchain
1 parent 60e11c8 commit e45a42b

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

qnx_qemu/.bazelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry
22
common --registry=https://bcr.bazel.build
33

44
build:x86_64-qnx --noexperimental_merged_skyframe_analysis_execution
5+
build:x86_64-qnx --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
6+
build:x86_64-qnx --incompatible_enable_cc_toolchain_resolution
57
build:x86_64-qnx --incompatible_strict_action_env
68
build:x86_64-qnx --platforms=@score_toolchains_qnx//platforms:x86_64-qnx
79
build:x86_64-qnx --sandbox_writable_path=/var/tmp
10+
11+
build:qemu-integration --config=x86_64-qnx
12+
build:qemu-integration --run_under=@score_itf//scripts:run_under_qemu
13+
build:qemu-integration --test_arg="--qemu"
14+
build:qemu-integration --test_arg="--os=qnx"

qnx_qemu/MODULE.bazel

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,51 @@ register_toolchains("@toolchains_qnx_ifs//:ifs_x86_64")
3838
#
3939
###############################################################################
4040
bazel_dep(name = "rules_shell", version = "0.6.0")
41+
42+
###############################################################################
43+
#
44+
# Python version
45+
#
46+
###############################################################################
47+
bazel_dep(name = "rules_python", version = "1.0.0")
48+
49+
PYTHON_VERSION = "3.12"
50+
51+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
52+
python.toolchain(
53+
configure_coverage_tool = True,
54+
is_default = True,
55+
python_version = PYTHON_VERSION,
56+
)
57+
use_repo(python)
58+
59+
###############################################################################
60+
#
61+
# LLVM Toolchains
62+
#
63+
###############################################################################
64+
bazel_dep(name = "toolchains_llvm", version = "1.2.0")
65+
66+
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
67+
llvm.toolchain(
68+
cxx_standard = {"": "c++17"},
69+
llvm_version = "19.1.0",
70+
)
71+
use_repo(llvm, "llvm_toolchain")
72+
use_repo(llvm, "llvm_toolchain_llvm")
73+
74+
register_toolchains("@llvm_toolchain//:all")
75+
76+
###############################################################################
77+
#
78+
# C++ rules
79+
#
80+
###############################################################################
81+
bazel_dep(name = "rules_cc", version = "0.1.1")
82+
83+
###############################################################################
84+
#
85+
# ITF dependency
86+
#
87+
###############################################################################
88+
bazel_dep(name = "score_itf", version = "0.1.0")

0 commit comments

Comments
 (0)