Nim: suggestion: allow user to specify pattern for output executable name in config file

Created on 8 May 2018  路  5Comments  路  Source: nim-lang/Nim

my suggestion is regarding the -o command line switch that specifies the output name for the executable.
I would like nim to read a config file, and know how to name the output file.
for example:
$name.exe
$name_$year-$month-$day

PS: it's late night here, if the feature isn't clear please reply

Feature Tools

Most helpful comment

This is probably much easier to do as part of a build script (rename output file after it is built) instead of building functionality into the compiler.

All 5 comments

You can do it with -o:name.ext or --out:name.ext

This is probably much easier to do as part of a build script (rename output file after it is built) instead of building functionality into the compiler.

I agree with you. nake is very suitable for such things.
and you're right the compiler is not the best place for this functionality.
I'll close the request.

@kobi2187 why would you need nake for that? You can use pure nimscript

Simply because I never tried it before. offtopic: Is there a nice tutorial for setting up all these basic tools?

Was this page helpful?
0 / 5 - 0 ratings