Skip to content

Drop redundant Linux compiler env from build-linux.yml#205

Open
bghgary wants to merge 1 commit into
BabylonJS:mainfrom
bghgary:jrh-ci-drop-redundant-compiler-env
Open

Drop redundant Linux compiler env from build-linux.yml#205
bghgary wants to merge 1 commit into
BabylonJS:mainfrom
bghgary:jrh-ci-drop-redundant-compiler-env

Conversation

@bghgary

@bghgary bghgary commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Context

build-linux.yml set job-level CC/CXX env alongside the -D CMAKE_C_COMPILER / -D CMAKE_CXX_COMPILER configure flags. The -D flags already select the compiler for both the gcc and clang matrix legs, so the env block was redundant.

No behavior change: on the parallel UrlLib CI cleanup both the gcc and clang Linux jobs stayed green with the env removed. The Run Tests step's env (TSAN_OPTIONS / JSC_useConcurrentGC) is untouched.

Part of a small cross-repo consistency pass — UrlLib landed the same cleanup. BabylonNative was checked and intentionally left alone: its build-linux.yml env is load-bearing there (its configure passes no -D compiler flags).

[Created by Copilot on behalf of @bghgary]

The job set CC/CXX env alongside the authoritative -D CMAKE_C_COMPILER /
-D CMAKE_CXX_COMPILER configure flags, which already select the compiler;
the env block was redundant. No behavior change (verified on the parallel
UrlLib cleanup: both the gcc and clang Linux jobs stay green with the env
removed). The Run Tests step's env (TSAN_OPTIONS / JSC_useConcurrentGC) is
unaffected.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 7, 2026 21:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the reusable Linux build workflow by removing a redundant job-level CC/CXX environment override, relying solely on the existing CMake -D CMAKE_C_COMPILER / -D CMAKE_CXX_COMPILER configuration inputs to select the toolchain.

Changes:

  • Removed job-level env: CC/CXX from the Linux build job.
  • Kept compiler selection driven by CMake configure flags (CMAKE_C_COMPILER / CMAKE_CXX_COMPILER).
  • Left the test-step-specific environment (TSAN_OPTIONS, JSC_useConcurrentGC) unchanged.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants