The /Zl flag omits default C runtime library name from obj files.
This patch just adds an equivalent clang driver flag.
Details
Details
- Reviewers
mstorsjo hans - Commits
- rG3283f71069a0: Add clang flag equivalent to clang-cl /Zl flag
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 188214 Build 284383: arc lint + arc unit
Event Timeline
clang/include/clang/Driver/Options.td | ||
---|---|---|
2230 | Initially, I'm not entirely sure about the option name - initially it feels weird/clumsy, but after thinking about it, I'm not sure if I can come up with something better either. Maybe just -fms-omit-default-lib? |
Comment Actions
Could the new flag be marked as an Alias in the tablegen, so that we don't need to do any code changes for it?
Comment Actions
It appears before _SLASH_Zl in the file so we'd have to move it out of place. We could alias /Zl to the new flag.
Comment Actions
lgtm
clang/include/clang/Driver/Options.td | ||
---|---|---|
2231 | Might as well add a help text while we're here? |
clang/test/Driver/cl-runtime-flags.c | ||
---|---|---|
101 | This testcase doesn't seem to be updated with the new name of the option? |
Initially, I'm not entirely sure about the option name - initially it feels weird/clumsy, but after thinking about it, I'm not sure if I can come up with something better either. Maybe just -fms-omit-default-lib?