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
2 changes: 1 addition & 1 deletion .github/workflows/aarch64-ebclfsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
cache-save: ${{ github.event_name == 'push' }}
- name: Bazel Build (basic)
run: |
bazel build --config aarch64-ebclfsa -- //:main_cpp
bazel build --config target_config_5 -- //:main_cpp
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

module(
name = "score_bazel_cpp_toolchains",
version = "0.3.1",
version = "0.4.0",
compatibility_level = 0,
)

Expand Down
6 changes: 3 additions & 3 deletions examples/.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ build:target_config_4 --extra_toolchains=@score_autosd_10_toolchain//:x86_64-lin
# -------------------------------------------------------------------------------
# Config dedicated to target platform CPU:aarch64 and OS:ebclfsa
# -------------------------------------------------------------------------------
build:aarch64-ebclfsa --config=shared
build:aarch64-ebclfsa --platforms=@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa
build:aarch64-ebclfsa --extra_toolchains=@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa
build:target_config_5 --config=shared
build:target_config_5 --platforms=@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa
build:target_config_5 --extra_toolchains=@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa
11 changes: 1 addition & 10 deletions examples/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ bazel_dep(name = "googletest", version = "1.17.0")
# *******************************************************************************
bazel_dep(
name = "score_bazel_cpp_toolchains",
version = "0.3.0",
version = "0.4.0",
)
local_path_override(
module_name = "score_bazel_cpp_toolchains",
Expand Down Expand Up @@ -166,12 +166,3 @@ use_repo(
"score_qcc_arm_toolchain",
"score_qcc_toolchain",
)

# register_toolchains(
# "@score_gcc_toolchain//:x86_64-linux-gcc_12.2.0",
# "@my_toolchain//:x86_64-linux-gcc_12.2.0",
# "@score_qcc_toolchain//:x86_64-qnx-sdp_8.0.0",
# "@score_qcc_arm_toolchain//:aarch64-qnx-sdp_8.0.0",
# "@score_aarch64_gcc_toolchain//:aarch64-linux-gcc_12.2.0",
# "@score_autosd_10_toolchain//:x86_64-linux-autosd10",
# )
42 changes: 33 additions & 9 deletions examples/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,51 @@
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************

echo -e "Testing 'host_config_1' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_1\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix\e[39m"
echo -e "Toolchain: \e[93m@score_gcc_toolchain//:x86_64-linux-gcc_12.2.0\e[39m"
bazel test --config host_config_1 //:math_lib_test
bazel clean --expunge
echo -e "Testing 'host_config_2' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_2\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-posix\e[39m"
echo -e "Toolchain: \e[93m@my_toolchain//:x86_64-linux-gcc_12.2.0\e[39m"
bazel test --config host_config_2 //:math_lib_test
bazel clean --expunge
echo -e "Testing 'host_config_3' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for x86_64 Linux as '\e[93mhost_config_3\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux\e[39m"
echo -e "Toolchain: \e[93m@score_gcc_toolchain_bp//:x86_64-linux\e[39m"
bazel test --config host_config_3 //:math_lib_test
bazel clean --expunge
echo -e "Testing 'target_config_1' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for x86_64 QNX as '\e[93mtarget_config_1\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-qnx-sdp_8.0.0-posix\e[39m"
echo -e "Toolchain: \e[93m@score_qcc_toolchain//:x86_64-qnx-sdp_8.0.0\e[39m"
bazel build --config target_config_1 //:main_cpp
bazel clean --expunge
echo -e "Testing 'target_config_2' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for Aarch64 QNX as '\e[93mtarget_config_2\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-qnx-sdp_8.0.0-posix\e[39m"
echo -e "Toolchain: \e[93m@score_qcc_arm_toolchain//:aarch64-qnx-sdp_8.0.0\e[39m"
bazel build --config target_config_2 //:main_cpp
bazel clean --expunge
echo -e "Testing 'target_config_3' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for Aarch64 Linux as '\e[93mtarget_config_3\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-linux-gcc_12.2.0-posix\e[39m"
echo -e "Toolchain: \e[93m@score_aarch64_gcc_toolchain//:aarch64-linux-gcc_12.2.0\e[39m"
bazel build --config target_config_3 //:main_cpp
bazel clean --expunge
echo -e "Testing 'target_config_4' ..."
echo -e "***********************************************************************************"
echo -e "Testing toolchain for x86_64 Linux (flavor: \e[93mautosd10) as '\e[93mtarget_config_4\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:x86_64-linux-autosd10\e[39m"
echo -e "Toolchain: \e[93m@score_autosd_10_toolchain//:x86_64-linux-autosd10\e[39m"
bazel build --config target_config_4 //:main_cpp
bazel clean --expunge
echo -e "Testing 'aarch64-ebclfsa' ..."
bazel build --config aarch64-ebclfsa //:main_cpp
echo -e "***********************************************************************************"
echo -e "Testing toolchain for Aarch64 Linux (flavor: \e[93mebclfsa) as '\e[93mtarget_config_5\e[39m' ..."
echo -e "Platform: \e[93m@score_bazel_platforms//:aarch64-linux-sdk_0.1.0-ebclfsa\e[39m"
echo -e "Toolchain: \e[93m@score_ebclfsa_toolchain//:aarch64-linux-sdk_0.1.0-ebclfsa\e[39m"
bazel build --config target_config_5 //:main_cpp
bazel clean --expunge
Loading