[M3devel] probing existance of C backend in config/quake

Jay K jay.krell at cornell.edu
Mon Jan 28 07:22:53 CET 2013


I maintain (and they are checked in and used) "one" set of
config files that are meant to work with a variety of old and
new releases.


The "upgrade" process, i.e. in Tinderbox/Hudon, does not
necessarily do things this way -- they have old config files
that go with old compilers, and only try to use the current
version with current compilers.


For these purposes however, I desire, like:
M3Build.m3:
  Builtins = ARRAY OF Builtin {
(*------------------------------------------------- feature/version probes --*)
    Builtin {"HasCBackend",                   HasCBackend,       0, TRUE },
...

(*------------------------------------------------- feature/version probes --*)

PROCEDURE HasCBackend (m: QMachine.T;  <*UNUSED*> n_args: INTEGER)
  RAISES {Quake.Error} =
  VAR t := Self (m);
  BEGIN
    PushBool (t, TRUE);
  END HasCBackend;



so config file can use the old mode "3" gcc backend if there is no
C backend.



ok?



Thanks,
 - Jay


 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20130128/fab38070/attachment-0001.html>


More information about the M3devel mailing list