Info about gcc compiler options used by nim

2022-08-30 Thread shirleyquirk
>From You can pass `--genScript:on` and it will > generate a compile script (in the 'nimcache' subdirectory named > 'compile_$$project$$scriptext'), and a '.deps' file containing the > dependencies; implies --compileOnly it will create a shell script in the

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Also this is a nice way to understand what is inside... thanks!

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Cool! Thanks. I see that also the `.json` file seems to contain all build and link instructions. This is really nice, gives a lot of insights.

Info about gcc compiler options used by nim

2022-08-30 Thread planetis
The command passed to the C compiler/linker is written in a comment at the top of the main C file in the nimcache dir and the .json file in the same directory has lists of all source and objects files.

Info about gcc compiler options used by nim

2022-08-30 Thread Symb0lica
You could run a nim compile with the --listCmd option to see the command lines for the compiles and links that nim executes. You may need to remove cached compiles (check ~/.cache/nim/ for directories beginning with the relevant program name)

Info about gcc compiler options used by nim

2022-08-30 Thread pp
Hi, I would like to have more info about performing the compiling process step from C to binary manually. Starting from the `~/nimcache/` folders where I have the source C files created by nim, what options are given to C compiler? What folders should be included that contain other C sources?