nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

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

Closed kobi2187 closed 6 years ago

kobi2187 commented 6 years ago

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

data-man commented 6 years ago

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

genotrance commented 6 years ago

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.

kobi2187 commented 6 years ago

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.

ghost commented 6 years ago

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

kobi2187 commented 6 years ago

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