Skip to content

Commit 8a89a12

Browse files
committed
Add clarifying comment
1 parent 414c55e commit 8a89a12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Driver/Multilib.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ bool MultilibSet::select(
225225
Selected.clear();
226226
bool AnyErrors = false;
227227

228+
// Determining the list of macro defines depends only on the custom flags
229+
// passed in. The library variants actually selected are not relevant in
230+
// this. Therefore this assignment can take place before the selection
231+
// happens.
228232
if (CustomFlagMacroDefines)
229233
*CustomFlagMacroDefines = std::move(CFMacroDefines);
230234

0 commit comments

Comments
 (0)