Skip to content

Commit

Permalink
ldmd2: Don't ignore other flags with -mcpu=<?|h|help> (#4745)
Browse files Browse the repository at this point in the history
Fixes #4740.
  • Loading branch information
kinke authored Sep 2, 2024
1 parent 1141e04 commit 0cc531e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions driver/ldmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -590,8 +590,7 @@ void translateArgs(const llvm::SmallVectorImpl<const char *> &ldmdArgs,
const char *c = p + 6;
if (strcmp(c, "?") == 0 || strcmp(c, "h") == 0 ||
strcmp(c, "help") == 0) {
execute({ldcPath.c_str(), "-mcpu=help"});
exit(EXIT_SUCCESS);
ldcArgs.push_back("-mcpu=help");
} else if (strcmp(c, "baseline") == 0) {
// ignore
} else if (strcmp(c, "avx") == 0) {
Expand Down

0 comments on commit 0cc531e

Please sign in to comment.