[PATCH] D64506: clang-cl: Remove -O0 option
Nico Weber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 09:12:16 PDT 2019
thakis created this revision.
thakis added a reviewer: rnk.
cl.exe doesn't understand it; there's /Od instead. See also the review
thread for r229575.
https://reviews.llvm.org/D64506
Files:
clang/include/clang/Driver/CLCompatOptions.td
Index: clang/include/clang/Driver/CLCompatOptions.td
===================================================================
--- clang/include/clang/Driver/CLCompatOptions.td
+++ clang/include/clang/Driver/CLCompatOptions.td
@@ -118,8 +118,6 @@
def _SLASH_O : CLJoined<"O">,
HelpText<"Set multiple /O flags at once; e.g. '/O2y-' for '/O2 /Oy-'">,
MetaVarName<"<flags>">;
-// FIXME: Not sure why we have -O0 here; MSVC doesn't support that.
-def : CLFlag<"O0">, Alias<O0>, HelpText<"Disable optimization">;
def : CLFlag<"O1">, Alias<_SLASH_O>, AliasArgs<["1"]>,
HelpText<"Optimize for size (same as /Og /Os /Oy /Ob2 /GF /Gy)">;
def : CLFlag<"O2">, Alias<_SLASH_O>, AliasArgs<["2"]>,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64506.208982.patch
Type: text/x-patch
Size: 695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190710/5425a523/attachment.bin>
More information about the cfe-commits
mailing list