Skip to content

Commit 67ddf59

Browse files
committed
prepare: one comment for the spelling-independent row lookup, where it lives
1 parent e5f2789 commit 67ddf59

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎src/build/prepare/toolchain_env.cpp‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@ namespace mcpp::build {
6363
// index is first opened, which can be hundreds of lines earlier; the message
6464
// that STOPS the build has to carry the cause, because that is the one a user
6565
// reads. See mcpp::pm::unusable_index_hint.
66-
// Spelling-independent `[target.<triple>]` lookup.
67-
//
68-
// A section keyed `x86_64-w64-mingw32` matches a resolved `x86_64-windows-gnu`,
69-
// and unparseable keys compare exactly (the escape hatch for custom triples).
7066
// The project's `[target.<triple>].sysroot`, or nullptr when it declared none.
67+
// The row is found by `find_target_entry` (prepare_inputs), as every row is.
7168
const std::string*
7269
sysroot_override(const mcpp::manifest::Manifest& m,
7370
const mcpp::toolchain::triple::Triple& t) {

‎src/build/prepare_inputs.cppm‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ inline std::string vocabulary_sentence() {
499499
// keyed `x86-windows-msvc` the `i686-windows-msvc` row. Every reader of a row
500500
// asks here. Readers that compared the key exactly gave a section that applied
501501
// to `toolchain` and not to `runner`, which is a defect nobody would think to
502-
// look for -- measured for the `x86` spelling (2026.10.5.3).
502+
// look for -- measured for the `x86` spelling (2026.10.5.3). A key the parser
503+
// does not know compares exactly: the escape hatch for a custom triple.
503504
inline const mcpp::manifest::TargetEntry*
504505
find_target_entry(const mcpp::manifest::Manifest& m,
505506
const mcpp::toolchain::triple::Triple& t) {

0 commit comments

Comments
 (0)