Skip to content

switch to system compilers (GCC on Linux, Apple Clang on macOS)#37355

Merged
adeebshihadeh merged 7 commits intomasterfrom
just_ubuntu_gcc
Feb 24, 2026
Merged

switch to system compilers (GCC on Linux, Apple Clang on macOS)#37355
adeebshihadeh merged 7 commits intomasterfrom
just_ubuntu_gcc

Conversation

@adeebshihadeh
Copy link
Copy Markdown
Contributor

@adeebshihadeh adeebshihadeh commented Feb 23, 2026

No description provided.

Remove hardcoded CC='clang'/CXX='clang++' and clang apt dependency.
Let SCons auto-detect the system compiler instead.

Build system changes:
- Remove CC/CXX overrides from SConstruct
- Remove clang from Ubuntu dependencies (build-essential provides gcc)
- Use -Wshadow=local on GCC (matches Clang's -Wshadow behavior)
- Add -Wno-cpp alongside -Wno-#warnings for GCC Cython compat
- Bump installer size limit (GCC produces larger binaries)

GCC compatibility fixes:
- Reorder designated initializers to match declaration order
- Fix -Wunused-result (assign to [[maybe_unused]] variable)
- Rename constructor/lambda params that shadow members/locals
- Replace decltype(&pclose) with explicit function pointer type
- Replace GNU array designated initializers with plain array init
- Split nested designated initializer (v4l2_streamparm)
- Remove redundant typedef struct pattern

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 23, 2026

UI Preview

mici: Videos are identical! View Diff Report
big: Videos are identical! View Diff Report

adeebshihadeh and others added 6 commits February 23, 2026 14:39
Use assert/REQUIRE for system calls where failure matters,
if(){} for destructor/signal handler cleanup where it doesn't.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@adeebshihadeh adeebshihadeh merged commit 76d084d into master Feb 24, 2026
12 of 13 checks passed
@adeebshihadeh adeebshihadeh deleted the just_ubuntu_gcc branch February 24, 2026 00:34
FrogAi pushed a commit to FrogAi/FrogPilot that referenced this pull request Apr 3, 2026
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.

1 participant