[cfe-dev] Clang-cl and C Blocks extension

Shoaib Meenai via cfe-dev cfe-dev at lists.llvm.org
Mon Jul 9 12:11:39 PDT 2018


You can pass "-Xclang -fblocks" on the command line to pass the option to cc1 directly.

From: cfe-dev <cfe-dev-bounces at lists.llvm.org> on behalf of cfe-dev <cfe-dev at lists.llvm.org>
Reply-To: Thorben Hasenpusch <t.hasenpusch at icloud.com>
Date: Monday, July 9, 2018 at 12:06 PM
To: cfe-dev <cfe-dev at lists.llvm.org>
Subject: [cfe-dev] Clang-cl and C Blocks extension

Hi guys,

I’m trying to compile C code that uses the Blocks extension using clang-cl on Windows, via CMake’s LLVM-vs2014 toolset.
The compilation errors out, telling me I’d need to enable blocks by passing “-fblocks” to clang, however clang-cl doesn’t recognize that flag.

Anything I can do?

Thanks,

Thorben
_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_cfe-2Ddev&d=DwIGaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=fXBg7mDMRpD5aFTwSkVGzQm_l-nEhQH52nOfnloTUfQ&s=eHXwWPv2JNzLoZeGlAh0qgOk3shPlYskr6yRzxNvjE0&e=

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180709/c85dcbd5/attachment.html>


More information about the cfe-dev mailing list