简体   繁体   中英

Visual Studio 2019 LLVM clang flags

​Hello, i choosed Platform toolset LLVM (clang-cl) 在此处输入图片说明

When i build project, visual studio start clang-cl.exe, how i can pass clang arguments(flags)?

It is the same mechanism used to pass options manually with the Visual C++ compiler, in that you can pass them by adding to "Additional Options" under: "Configuration Properties", "C/C++", "Command Line":

配置属性

To find out which subset of clang options are available, bring up a Visual Studio 2019 command prompt and type: clang-cl -?

This will first list the Microsoft compatibility options (ie the ones VC++ uses) and then follows up with the Clang options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM