Explicit target versions
Use --gcc-version or --gcc to select the target compiler. The profile, built-in macros, and include paths all come from the same target and are never mixed.
CrucibleCpp is a standalone C++ preprocessor. It reads source files, completes translation phases 1–4, and emits output ready for GCC to continue compiling .i files.
# Preprocess with the target GCC's profile and headers PS> .\cruciblecpp-preprocessor.exe --gcc-version=15 ` -P src\main.cpp -o build\main.i # The output can be compiled directly by GCC PS> g++ -std=c++20 build\main.i -o build\main.exe PS> .\build\main.exe ✓ preprocess complete ✓ 65/65 tests · GCC 15.2 / 14.3 / 13.3
Every positive case goes through the same chain: CrucibleCpp generates .i, which the matching GCC compiles into an exe and then actually runs. Behavior is benchmarked against GCC 15.2, 14.3, and 13.3.
Use --gcc-version or --gcc to select the target compiler. The profile, built-in macros, and include paths all come from the same target and are never mixed.
source caret, include trace, warning ID,-Werror, the pragma diagnostic stack, and suppression of system-header warnings.
nlohmann/json, fmt, and spdlog are preprocessed, compiled, and run on all three GCC versions, covering real headers and macro combinations.
\uXXXX and \UXXXXXXXX participate in identifiers,#, ##; validity checks and output normalization are aligned with GCC.
binary embedding,limit, gnu::offset, prefix, suffix, if_empty, and __has_embed.
PCH strategies and caches are available for GCC 13 / 14 / 15. The manifest records the compiler path, version, and executable hash so that caches never produce false hits across versions.
The current production target is locked to Windows x64 + MinGW-w64 UCRT64. Each GCC version uses its own profile and headers, and the output is verified by actually compiling it with the matching GCC.
| Target | Status | Notes |
|---|---|---|
GCC 15.2 | Full | C++11/14/17/20 profile |
GCC 14.3 | Full | C++11/14/17/20 profile |
GCC 13.3 | Full | C++11/14/17/20 profile |
| Windows x64 / UCRT64 | Supported | Current production target |
| Linux / MSVC / Clang | Unsupported | The architecture keeps extension points open |
g++.dg/cpp testsuite regression runs continuouslyg++ -ECurrent stable release V3.0.1 · Windows x64 · single-file exe.