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

Extensibility for more complex build steps #4

Open
benpye opened this issue Mar 14, 2015 · 6 comments
Open

Extensibility for more complex build steps #4

benpye opened this issue Mar 14, 2015 · 6 comments

Comments

@benpye
Copy link

benpye commented Mar 14, 2015

I really like the idea of this, I wish build systems were less intrusive and this seems to do something toward that. I feel however it would be useful to have more extensibility to run tools such as protoc (Protobuf compiler) to generate code, before then compiling it, as currently I can't see any way of doing this. If you really wanted to stick with the whole everything is C aspect, you could maybe even use TCC or such to achieve this, but I'm not sure it's really necessary to go to those lengths.

@andlabs
Copy link
Owner

andlabs commented Mar 15, 2015

Adding more format is definitely desirable; perhaps I could add a #qo generate facility...

What is TCC?

@refi64
Copy link

refi64 commented Mar 15, 2015

Tiny C Compiler.

Is that even maintained anymore? Most places now use Clang.

@benpye
Copy link
Author

benpye commented Mar 15, 2015

Yeah I don't think it's maintained, just ideas.

@andlabs
Copy link
Owner

andlabs commented Mar 15, 2015

Yes, but what ideas are you suggesting with TCC?

@benpye
Copy link
Author

benpye commented Mar 16, 2015

Oh I was just thinking of ideas with how qo could be extended at runtime, the idea there being I guess being able to add a custom function that would be in the same language as the program, obviously, this doesn't work if support is added for other languages, and you could probably just use the host compiler. I'm not sure however how productive it is to implement your own scripting language, perhaps you could call a batch or shell script, and allow the user to handle it, and all you do is register the extension.

@andlabs
Copy link
Owner

andlabs commented Mar 17, 2015

Ah I'll see; I'll think about that (keep this open in the meantime). Thanks.

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

No branches or pull requests

3 participants