Getting compile command in compile time.

2022-08-16 Thread chaemon
Thanks! std/compilesettings is exactly what I want!!

Getting compile command in compile time.

2022-08-09 Thread rockcavera
I believe you are wanting this: [std/compilesettings](https://nim-lang.org/docs/compilesettings.html)

Getting compile command in compile time.

2022-08-09 Thread auxym
I'm not sure if you can access all options, but some can be accessed eg. defines: And you can access the `--cpu` and `--os` via `hostCpu` and `hostOs` consts in system.

Getting compile command in compile time.

2022-08-09 Thread chaemon
Are there any way to get compile command in compile time? I know that std/parseopt enables to get runtime option. Then, I wonder how to get compile option in compile time.