This is an archive of the discontinued LLVM Phabricator instance.

clang-cl: Make /Za disable oldnames.lib dependency
ClosedPublic

Authored by hans on Aug 7 2013, 6:19 PM.

Details

Summary

This makes the /Za command-line flag disable inclusion of oldnames.lib as a dependency in object files. It's possible this flag should be doing more stuff, and therefore I haven't given it a HelpText, but this is a start.

Diff Detail

Event Timeline

rnk accepted this revision.Aug 7 2013, 8:47 PM

LGTM

This flag should be doing more stuff. This flag is supposed to request strict ANSI conformance (according to Microsoft's, uh... "unique" interpretation of that). That means at least (in GCC terms) -fno-ms-extensions, in addition to not auto-linking OLDNAMES.LIB. (The /Ze flag undoes the effects of /Za.)

I seem to recall someone from MS on cfe-dev (and yes, they do exist!) saying that /Za is broken and shouldn't be used (cf. "/Za considered harmful" or some such). Are you sure you want to implement it, given that?

hans closed this revision.Aug 8 2013, 9:56 AM

Closed by commit rL187991 (authored by @hans).