Menu

#40 Force use of optionfiles

open
nobody
cpptasks (19)
5
2005-06-29
2005-06-29
Anton
No

Hi, in my current project I am in need of the possibility
to force the use of optionfiles. the requirements I have
are:
- The file should be dynamically created upon
compilation.
- It must be possible to decide if you want to quote the
options or not, such as "-O 4" or -O 4.
- make difference between files and options when it
comes to quoting.
- Make automatic generation of option files available for
both linkers and compilers.

Motivation:
- I am currently using windows 2k, and ANT is adding
quotes around arguments that contains a whitespace.
- Have many files in the different components, and many
include paths, would be nice to dynamically reuse these
instead of having a option file for every module.
- Win2k cmd.exe does not support long argument lists.

Implementation sugestion.
Extract the interface of the needed functionality into a
config file object, that way we would be able to reuse
functionality, today the linker code looks like a mess
and it is hard to reuse code.

Discussion


Log in to post a comment.