seltzered / ccons

Automatically exported from code.google.com/p/ccons
MIT License
0 stars 0 forks source link

Blocks #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Dear Alexei,

First of all thank you very much for this project.
Downloaded latest llvm and clang.
As I compiled llvm and clang in Release mode I had to adapt the CMakeLists.txt 
to look into the "Release" directory and not in the "Debug+Asserts" as it is in 
the default case.
Then I compiled without problem.

I'm thinking of embedding ccons in an application I'm writing at the moment.
But I would like be able to use c Blocks.
At the moment it doesn't work:

I'm on an Mac OSX running 10.6.7

What steps will reproduce the problem?
1. start ccons
2. #include <Block.h>
3. typedef int (^IntBlock)();

What is the expected output? What do you see instead?
I see:
:5: error: blocks support disabled - compile with -fblocks or pick a deployment 
target that supports them
 typedef int (^IntBlock)();
              ^
Even If I try to compile with the -fblocks option.
In other cases / programs I'm writing using blocks work well.

What version of the product are you using? On what operating system?
I'm using the latest version of ccons from svn on OSX 10.6.7

Do you think this feature could be included in ccons?

Best regards,

David Pirrò

Original issue reported on code.google.com by david.pi...@gmail.com on 17 May 2011 at 3:10

GoogleCodeExporter commented 9 years ago
Resolved by adding:
    _options.Blocks = true; 
for clang::LangOptions in the Console constructor

Original comment by david.pi...@gmail.com on 18 May 2011 at 8:35