Closed SchokiCoder closed 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..
changed and pushed to master (only need to update the website documentation, the c2_docs in good). Now the recipe.txt has:
backend c
if no backend is chosen (without --check, -c, -q flags), there will be an error.
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.