Landing: 526f0abf6de6
Project / Subsystem
gcc / build
Date
2026-05-01
Author
Manuel Jacob
Commit
526f0abf6de62adc42bca9dbdc63d50e36138dfc
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- build
- patch_id
- —
- commit_hash
- 526f0abf6de62adc42bca9dbdc63d50e36138dfc
- source_type
- github
- headline
- Build: Set default CPP_FOR_BUILD in all cases.
- tldr
- Ensure CPP_FOR_BUILD is always defaulted, which is important for build systems using autoconf.
- author
- Manuel Jacob
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- gcc:build: set default for cpp_for_build environment variable in all cases
- series_parts
- []
- tags
-
- • build
- • configure
- • preprocessor
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-01T00:00:00.000Z
The CPP_FOR_BUILD environment variable, used to specify the C preprocessor for building programs, wasn’t being defaulted in all build configurations, particularly when the build and host architectures were the same. This commit ensures that CPP_FOR_BUILD is always defaulted to $CC_FOR_BUILD -E, resolving a potential issue where autoconf would try to infer the preprocessor by trying CC -E.