c2lang / c2c_native

C2 Compiler - written in C2
Apache License 2.0
24 stars 5 forks source link

No target option chosen in recipe #9

Closed SchokiCoder closed 1 year ago

SchokiCoder commented 1 year ago

Using a recipe with no "generate-c" or other target option, leaves the user a bit in the dark. I think adding a warning would be good.

bvdberg commented 1 year ago

Good point. This is a historical thing. Eventually this options will go away, since a compiler should generate something by default, unless some options are set (like --check). Maybe a better name would be 'backend c' (since we also will have a backend llvm / qbe). Let me think about this for a few days..

bvdberg commented 1 year ago

changed and pushed to master (only need to update the website documentation, the c2_docs in good). Now the recipe.txt has: backend c backend llvm backend qbe

if no backend is chosen (without --check, -c, -q flags), there will be an error.