Skip to content

Commit 0cc531e

Browse files
authored
ldmd2: Don't ignore other flags with -mcpu=<?|h|help> (#4745)
Fixes #4740.
1 parent 1141e04 commit 0cc531e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

driver/ldmd.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,7 @@ void translateArgs(const llvm::SmallVectorImpl<const char *> &ldmdArgs,
590590
const char *c = p + 6;
591591
if (strcmp(c, "?") == 0 || strcmp(c, "h") == 0 ||
592592
strcmp(c, "help") == 0) {
593-
execute({ldcPath.c_str(), "-mcpu=help"});
594-
exit(EXIT_SUCCESS);
593+
ldcArgs.push_back("-mcpu=help");
595594
} else if (strcmp(c, "baseline") == 0) {
596595
// ignore
597596
} else if (strcmp(c, "avx") == 0) {

0 commit comments

Comments
 (0)