compile: intro of option files for modules with special needs
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 1 Aug 2011 17:29:10 +0000 (13:29 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 9 Feb 2012 21:00:52 +0000 (16:00 -0500)
commit1bdac1b9235c61dbbb6b9654f0f0e7a06cc1f798
tree17b67906c2e9d9644f99773211b2088fd10af0f2
parent84cc2eba5d1b10f267a78072c897083c20307a48
compile: intro of option files for modules with special needs

This allows the user to specify compiler arguments for each module with files.
To do so for a given module "json", the user inputs the args for the compiler
in a file named json.nit.args. As example, the content of the file could be
"--cc-lib-name json", which asks to link with a native library when using this
module. Theses args will be interpreted as those given on the command line.

The args allowed are limited to C compilation options, as others don't seam
to be of any use in this way.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/nitc.nit
src/separate_options.nit [new file with mode: 0644]