Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks #13

Open
GoogleCodeExporter opened this issue Jun 29, 2015 · 1 comment
Open

Blocks #13

GoogleCodeExporter opened this issue Jun 29, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 17 May 2011 at 3:10

@GoogleCodeExporter
Copy link
Author

Resolved by adding:
    _options.Blocks = true; 
for clang::LangOptions in the Console constructor

Original comment by [email protected] on 18 May 2011 at 8:35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant