Dear all,

here is another idea: if ozmake would at least support the compiler option --include=FILE, then any compiler switch etc. can be set in FILE. The implementation should be relatively easy by following Wolfgang's example.

Any comments?

Best
Torsten

On Sep 12, 2007, at 7:41 AM, Raphael Collet wrote:
Dear Torsten,

For the sake of syntax, I would suggest to use "--compiler-" as a prefix
to compiler options, so you could write things like

    --compiler-warnshadow
    --compiler-environment=MODULES

A generic way to specify compiler options sounds like a must-have to me.

Cheers,
raph

Torsten Anders wrote:
Dear Wolfgang,

thank you very much for this.

There are other compiler options not supported by ozmake either (e.g., all the warning options like --warnshadow). Could we perhaps add support for arbitrary compiler options in a generic way? For example, we could have an option --compileroptionsfile=PATH, where the text file at PATH contains arbitrary compiler options which are all hand to the compiler by ozmake. Of course, the users are responsible for what they are doing.

I thought a while about an option --compileroption=OPTION, where OPTION
is any compiler option and the option --compileroption could occur
multiple times. However, I couldn't come up with a suitable format this
late.. Easy cases would be boolean options like

  --compileroption=warnshadow

However, I don't know how to handle compiler options which expect a list
of values...

  --compileroption=environment=MODULES

BTW: any chance such changes to ozmake will make it into the main
repository?

Best
Torsten


______________________________________________________________________ ___________ mozart-users mailing list mozart- [EMAIL PROTECTED]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
http://strasheela.sourceforge.net
http://www.torsten-anders.de


_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to