[PATCH] D135128: [clang][cli] Simplify repetitive macro invocations
Jan Svoboda via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 2 09:36:12 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG12d8e7c6ade5: [cmake][msvc] Enable standards-conforming preprocessor (authored by jansvoboda11).
Changed prior to commit:
https://reviews.llvm.org/D135128?vs=465112&id=472651#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135128/new/
https://reviews.llvm.org/D135128
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -481,6 +481,10 @@
append("/Zc:inline" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ # Enable standards-conforming preprocessor.
+ # https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor
+ append("/Zc:preprocessor" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+
# Some projects use the __cplusplus preprocessor macro to check support for
# a particular version of the C++ standard. When this option is not specified
# explicitly, macro's value is "199711L" that implies C++98 Standard.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135128.472651.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221102/3d061a4f/attachment.bin>
More information about the llvm-commits
mailing list