Re: -pgmc/a/l default options, other ideas

"Krasimir Angelov" <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <c97c08d20701050825s5466501fuf26d63ed5459cf0e__41772.1081212678$1168014337$gmane$org@mail.gmail.com>
> > I can imagine that we might need 'cl-options' in addition to 'cc-
> > options', though.
>
> If the purpose of -ccflavour is to encapsulate any number of
> different C compilers, then it would be easier and more general to
> add 'cc-flavour' to BuildInfo than to add, say:
>
> cl-options      MS CL
> scc-options     Sun 'CC' compiler (overlaps 'cc-options')
> xlc-options     IBM XL/C compiler
> ...

but having different fields for CL and GCC will tell to Cabal to use
the cl-options field for Windows and cc-options for Linux. With
cc-flavour you will force Cabal to always use CL which is unavailable
under Linux.

Cheers,
  Krasimir
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.