[PATCH] D133457: Add Clang driver flags equivalent to cl's /MD, /MT, /MDd, /MTd.
Amy Huang via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 12 15:55:20 PDT 2022
akhuang added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:6480
+ // Process Windows runtime flags (equivalent to cl flags /MD, /MDd, /MT, /MTd)
+ if (Triple.isOSWindows()) {
----------------
hans wrote:
> Could we somehow re-use the logic in Clang::AddClangCLArgs()? Perhaps the main switch from that could be extracted to a function that could be called from here?
Put it in a separate function; I guess it's a bit messy as some clang-cl flags aren't implemented for clang.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133457/new/
https://reviews.llvm.org/D133457
More information about the cfe-commits
mailing list