Skip to content

Commit dab99e2

Browse files
committed
A selected member's redundant CRT word is stated as a root's is
1 parent 80f5959 commit dab99e2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎src/build/prepare/scan.cpp‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,9 @@ step11_msvc_crt_word_check(PrepareState& state) {
291291
state.m->buildConfig.linkage, state.m->buildConfig.cxxRuntime);
292292
for (std::size_t i = 0; i < state.packages.size(); ++i) {
293293
auto const& pkg = state.packages[i];
294-
const bool isRoot = i == 0;
294+
// A selected workspace member is the project being developed and
295+
// is spoken to as a root (§15).
296+
const bool isRoot = i == 0 || pkg.selectedMember;
295297
// A word `[workspace.build]` contributed is named at the table
296298
// that states it (WS3): the member's `[build]` does not contain
297299
// it, and a reader sent there finds nothing to remove.

0 commit comments

Comments
 (0)