[Omake] Passing full target paths to compilers

Benjamin Pierce bcpierce at cis.upenn.edu
Mon Jun 12 07:26:00 PDT 2006


Thanks, Jason -- That should do the trick for me.  I'm a little  
surprised, though, that this requires adding a flag to OMake itself:  
I'd have thought that it should be easy to do it entirely by  
programming within OMake, by adding a variable that changes the way  
rules are built by OCaml.om.  Is this not the case?

     - Benjamin



On Jun 10, 2006, at 5:15 PM, Jason Hickey wrote:

> I have added a --absname option that will force omake to use  
> absolute pathnames for all files.
>
> I am a bit dubious of this option, because it may have unintended  
> side-effects (for example, when you create a symlink, with -- 
> absname it will link to the absolute name).
>
> Also, omake considers rules to be out-of-date if the commands-text  
> changes.  To minimize build times, you should avoid switching back  
> and forth.
>
> The --absname is a scoped option.  If you want to specify where it  
> is used, use the OMakeFlags function.
>
>    OMakeFlags(--absname)
>    # --absname is now in effect
>
> or even
>
>    section
>       OMakeFlags(--absname)
>       ...
>
> Jason
>
> Benjamin Pierce wrote:
>> Since my project involves OCaml files in several directories, I  
>> want  to invoke the OCaml compiler with the full absolute pathname  
>> of each  source .ml file, so that error messages will be printed  
>> in a way that  emacs can interpret, no matter where I do the  
>> compilation from.  Is  there an easy way to achieve this?
>> (I tried the obvious one -- changing
>>    OCamlProgram($(RESULT), $(rootname $(SOURCES)))
>> to
>>    OCamlProgram($(RESULT), $(absname $(rootname $(SOURCES))))
>> but this seems to have no effect.)
>> Thanks,
>>     - Benjamin
>> _______________________________________________
>> Omake mailing list
>> Omake at metaprl.org
>> https://lists.metaprl.org/mailman/listinfo/omake
>
>
> -- 
> Jason Hickey                  http://www.cs.caltech.edu/~jyh
> Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake



More information about the Omake mailing list