Skip to content

Commit

Permalink
Fix error in clang /MT equivalent flag patch.
Browse files Browse the repository at this point in the history
This is a followup to reviews.llvm.org/D133457.
  • Loading branch information
amykhuang committed Sep 15, 2022
1 parent fdff1bb commit 9ada3d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/Driver/ToolChains/Clang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6543,7 +6543,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (IsMSVCCompat)
CmdArgs.push_back("-fms-compatibility");

if (Triple.isWindowsMSVCEnvironment() && !D.IsCLMode())
if (Triple.isWindowsMSVCEnvironment() && !D.IsCLMode() &&
Args.hasArg(options::OPT_fms_runtime_lib_EQ))
ProcessVSRuntimeLibrary(Args, CmdArgs);

// Handle -fgcc-version, if present.
Expand Down

0 comments on commit 9ada3d5

Please sign in to comment.