[mercury-users] target specific variables

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Mar 12 16:27:04 AEDT 2002


On 12-Mar-2002, Michael Day <mikeday at bigpond.net.au> wrote:
> 
> I've been using target specific Mmake rules such as:
> 
> MCFLAGS-foo = --no-warn-det-decls-too-lax
> 
> However I can't seem to use them for nested modules:

The compiler doesn't have any way of compiling *nested* sub-modules with
different options.  All modules in a single file must be compiled with
the same options.  If you want to compile different sub-modules with
different options, then you need to put them in a separate file,
i.e. make them "separate sub-modules" rather than "nested sub-modules".
(I'm using the terminology from the Mercury language reference manual here.
Maybe you just meant to say "sub-module" rather than "nested module".)

If you are asking about how to specify different options for
separate sub-modules, the syntax to set the options for a module
named `foo__bar' is as follows:

	MCFLAGS-foo.bar = --no-warn-det-decls-too-lax

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list