-
-
Notifications
You must be signed in to change notification settings - Fork 44
When to use every option
Zeioth edited this page Nov 22, 2023
·
16 revisions
In this section I describe in which situation you should use every option of the compiler.
Build and run program, Build program and Run program are meant to be used when you are just testing the compiler, or creating your own project. It uses the default entry_point and output specified by the code conventions of your current filetype.
Build solution Is the option you use to tell Compiler.nvim the entry_point and output of one or more of your program (or many programs). You can do it by creating a .solution.toml file in your working directory. You can do it this way.
Instead of using a .solution.toml file, you might prefer to use make, cmake, gradle or any other build automation utility to compile and run your code. You can do it this way.