[cfe-dev] clang-cl question

Stephan Bergmann via cfe-dev cfe-dev at lists.llvm.org
Thu Nov 12 08:36:57 PST 2015


On 11/11/2015 06:02 PM, Nico Weber wrote:
> #pragma intrinsic isn't implemented yet, this is http://llvm.org/PR19898
> . As a workaround, you can pass /FIIntrin.h in your compiler flags, then
> things should work.
>
> Slides 83-88 of this deck give some advice such as this for using
> clang-cl in practice:
> https://docs.google.com/presentation/d/1oxNHaVjA9Gn_rTzX6HIpJHP7nXRua_0URXxxJ3oYRq0/edit#slide=id.p

Ah, those slides are reassuring; thanks!

(Btw, ran into a case where I also need to pass in -D_CRT_RAND_S= to 
cl-clang in addition to -FIIntrin.h, for a file that does

   #define _CRT_RAND_S
   #include <stdlib.h>

and Intrin.h apparently (indirectly) includes stdlib.h, too.)



More information about the cfe-dev mailing list