[PATCH] D139167: [clang][Windows]Ignore Options '/d1nodatetime' and '/d1import_no_registry'
Qfrost via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 1 20:16:18 PST 2022
Qfrost911 created this revision.
Qfrost911 added reviewers: aaron.ballman, pengfei, JosephTremoulet, efriedma.
Herald added a project: All.
Qfrost911 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Using clang and VS to build Windows Kernel Driver, two errors will be raised
1>clang-cl : error : no such file or directory: '/d1nodatetime'
1>clang-cl : error : no such file or directory: '/d1import_no_registry'
In the patch, I ignore these options in order to build windows driver under visual studio.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D139167
Files:
clang/include/clang/Driver/Options.td
Index: clang/include/clang/Driver/Options.td
===================================================================
--- clang/include/clang/Driver/Options.td
+++ clang/include/clang/Driver/Options.td
@@ -6914,7 +6914,10 @@
def _SLASH_Zm : CLIgnoredJoined<"Zm">;
def _SLASH_Zo : CLIgnoredFlag<"Zo">;
def _SLASH_Zo_ : CLIgnoredFlag<"Zo-">;
-
+def _SLASH_d1nodatetime : CLIgnoredFlag<"d1nodatetime">,
+ HelpText<"d1nodatetime">;
+def _SLASH_d1import_no_registry : CLIgnoredFlag<"d1import_no_registry">,
+ HelpText<"d1import_no_registry">;
// Unsupported:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139167.479514.patch
Type: text/x-patch
Size: 559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221202/d5ceeb64/attachment.bin>
More information about the cfe-commits
mailing list