This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: weird feature


Edward Lam wrote:
> Dave Korn wrote:
>> Larry Hall (Cygwin) wrote:
>>
>>>   2. Use 'cygpath' to convert from DOS to Cygwin path forms and back as
>>>      needed.  This can get tricky/cumbersome in some cases.
>>
>> It can be a lot easier if you have a Makefile-based build system, where
>> you can do the conversion on things that you know need converting like 
>> $(SRC) and $(OBJS) and $(INCLUDEPATH) but not things like $(CFLAGS),
>> rather than if you try and write shell scripts to wrap the compiler and
>> parse the options. That can also be a good approach, but more work to get
>> it completely right.
> 
> In my experience, adding cygcheck does slow down a large build system
> *significantly* when adding cygpath's though.

  Makefile variable caching can be done(*).  And make very sure you use ":="
not "=" when assigning a variable that might contain a $(shell)!  There's
still bound to be some overhead, but you can do a lot to optimise it away.

    cheers,
      DaveK
-- 
(*) - http://www.cmcrossroads.com/content/view/7382/264/

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]