[M3devel] "one more time before I give in" :)

Olaf Wagner wagner at elegosoft.com
Mon Jan 21 08:20:53 CET 2008


Quoting Jay <jayk123 at hotmail.com>:

> Should the mingwin/msys method just be a configuration of NT386?
> A command line option to cm3 and/or an environment variable?
>
> The targets are nearly the same.
> The difference just needs to be exposed somehow, so the config file   
> can switch betwen two implementations of a few functions --   
> compile_c, m3_link, make_lib.
> If Windows cminstall/src/config/NT386 and   
> cminstall/src/config/NT386GNU, you see very very similar.

As long as the M3 and C code is all the same, I'm not against having
just different cm3.cfg files.

> Maybe they vary just in BUILD_DIR? Or does that break   
> things?Profiling changes BUILD_DIR so I figure it might be ok.
> I tried making BUILD_DIR not readonly and setting it with cm3 -D,   
> doesn't work.
> It can probably be set conditionally in the config file based on   
> another variable though, I'd have to check.
>
> Besides, it might be nice for a notion of a set of build_dirs that   
> are probed.
> In particular, you might have some C or C++ code that uses GCC (or   
> Microsoft) extensions.
> That could also be handled by a different variable, like   
> compile_with_gcc() and compile_with_msvc() in the m3makefile and   
> then cm3 would switch between compile_gcc and compile_msvc instead   
> of the usual compile_c functoin.
>
> There is a high degree of interoperabilty between these two or even   
> all three platforms.
>
> Perhaps this is a can of worms though. Much potential utility but   
> too complicated to think about?
>
> Perhaps I too desperate to have fewer platforms?
> I do need multiple build_dirs, like three, that is certain.

Using other build_dirs for derived target files from cm3.cfg should
work, too; but we should not diverge too much from the staandard;
perhaps just add a _MINGWIN or _CYGWIN suffix?

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list