[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?


cfe-dev mailing list
cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>

-------------- 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