From c96e90c69f46f5794e78826538f49b6126270c9f Mon Sep 17 00:00:00 2001 From: sramzy1 Date: Thu, 3 Sep 2026 14:14:42 +0300 Subject: [PATCH 1/2] Add custom target specification JSON files for QNX 8.0 targets Signed-off-by: sramzy1 --- target_specs/BUILD.bazel | 21 ++++++++++++++++++++ target_specs/aarch64-unknown-nto-qnx800.json | 12 +++++++++++ target_specs/x86_64-pc-nto-qnx800.json | 12 +++++++++++ 3 files changed, 45 insertions(+) create mode 100644 target_specs/BUILD.bazel create mode 100644 target_specs/aarch64-unknown-nto-qnx800.json create mode 100644 target_specs/x86_64-pc-nto-qnx800.json diff --git a/target_specs/BUILD.bazel b/target_specs/BUILD.bazel new file mode 100644 index 0000000..723dcd0 --- /dev/null +++ b/target_specs/BUILD.bazel @@ -0,0 +1,21 @@ +# ******************************************************************************* +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0 +# +# SPDX-License-Identifier: Apache-2.0 +# ******************************************************************************* + +filegroup( + name = "qnx800_target_specs", + srcs = [ + "aarch64-unknown-nto-qnx800.json", + "x86_64-pc-nto-qnx800.json", + ], + visibility = ["//visibility:public"], +) diff --git a/target_specs/aarch64-unknown-nto-qnx800.json b/target_specs/aarch64-unknown-nto-qnx800.json new file mode 100644 index 0000000..42c0d69 --- /dev/null +++ b/target_specs/aarch64-unknown-nto-qnx800.json @@ -0,0 +1,12 @@ +{ + "arch": "aarch64", + "data-layout": "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128", + "llvm-target": "aarch64-unknown-nto-qnx800", + "max-atomic-width": 128, + "os": "nto", + "target-env": "nto80", + "target-family": [ + "unix" + ], + "target-pointer-width": "64" +} diff --git a/target_specs/x86_64-pc-nto-qnx800.json b/target_specs/x86_64-pc-nto-qnx800.json new file mode 100644 index 0000000..60a63ee --- /dev/null +++ b/target_specs/x86_64-pc-nto-qnx800.json @@ -0,0 +1,12 @@ +{ + "arch": "x86_64", + "data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128", + "llvm-target": "x86_64-pc-nto-qnx800", + "max-atomic-width": 64, + "os": "nto", + "target-env": "nto80", + "target-family": [ + "unix" + ], + "target-pointer-width": "64" +} From 9caa1358015c3560bae9d4dc9626530928bdf269 Mon Sep 17 00:00:00 2001 From: sramzy1 Date: Thu, 3 Sep 2026 14:40:31 +0300 Subject: [PATCH 2/2] export json files Signed-off-by: sramzy1 --- target_specs/BUILD.bazel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target_specs/BUILD.bazel b/target_specs/BUILD.bazel index 723dcd0..565d300 100644 --- a/target_specs/BUILD.bazel +++ b/target_specs/BUILD.bazel @@ -11,9 +11,9 @@ # SPDX-License-Identifier: Apache-2.0 # ******************************************************************************* -filegroup( - name = "qnx800_target_specs", - srcs = [ +# Expose raw JSON specification files to external repository boundaries (score_crates) +exports_files( + [ "aarch64-unknown-nto-qnx800.json", "x86_64-pc-nto-qnx800.json", ],