You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by li...@apache.org on 2025/10/14 11:02:50 UTC

(rocketmq-apis) branch zhimin/fix-bazel2 created (now 6d83e6e)

This is an automated email from the ASF dual-hosted git repository.

lizhimin pushed a change to branch zhimin/fix-bazel2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git


      at 6d83e6e  build(bazel): 使用指定版本的 GCC 和 G++ 编译- 在 .bazelrc 文件中将 CC 和 CXX 环境变量设置为 gcc-11 和 g++-11

This branch includes the following new commits:

     new 6d83e6e  build(bazel): 使用指定版本的 GCC 和 G++ 编译- 在 .bazelrc 文件中将 CC 和 CXX 环境变量设置为 gcc-11 和 g++-11

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(rocketmq-apis) 01/01: build(bazel): 使用指定版本的 GCC 和 G++ 编译- 在 .bazelrc 文件中将 CC 和 CXX 环境变量设置为 gcc-11 和 g++-11

Posted by li...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lizhimin pushed a commit to branch zhimin/fix-bazel2
in repository https://gitbox.apache.org/repos/asf/rocketmq-apis.git

commit 6d83e6e31f8c780ad9abf5dbc92ba8653f485377
Author: lizhimins <70...@qq.com>
AuthorDate: Tue Oct 14 19:02:21 2025 +0800

    build(bazel): 使用指定版本的 GCC 和 G++ 编译- 在 .bazelrc 文件中将 CC 和 CXX 环境变量设置为 gcc-11 和 g++-11
    
    - 在 GitHub Actions 中安装 gcc-11 和 g++-11
    
    Change-Id: I289f0fc458e69a309ae92a53d621e0b5f8ecfb70
---
 .bazelrc                   | 4 ++--
 .github/workflows/main.yml | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.bazelrc b/.bazelrc
index 21901dc..874d347 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -20,8 +20,8 @@ build --javabase=@bazel_tools//tools/jdk:remote_jdk11
 build --enable_platform_specific_config
 
 # Pass PATH, CC, CXX and LLVM_CONFIG variables from the environment.
-build --action_env=CC
-build --action_env=CXX
+build --action_env=CC=gcc-11
+build --action_env=CXX=g++-11
 build --action_env=LD_LIBRARY_PATH
 build --action_env=LLVM_CONFIG
 build --action_env=PATH
\ No newline at end of file
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index feb9f2d..f8a19be 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -27,7 +27,7 @@ jobs:
       
       - name: Setup Bazel
         run: |
-          sudo apt-get -qq install npm
+          sudo apt-get -qq install npm gcc-11 g++-11
           sudo npm install -g @bazel/bazelisk
       - name: Use Bazel
         if: matrix.os != 'windows'