OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 7:10 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Makefile Question
PostPosted: Mon May 08, 2017 1:28 pm 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
I'm not arguing it, i'm rather surprised why yet another build system with a database, requiring osxfuse to be installed (i'm not kidding) and then instrumenting compiler calls instead of reusing what compiler could tell. It's probably faster, but ninja is fast without all that.

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Mon May 08, 2017 3:00 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
dozniak wrote:
perhaps library files and other binaries.

Tup keeps track of all of that and more. I've seen it rebuild things after a change to my environment variables!

Solar wrote:
And while a commendable effort, it is still being educated guesswork.

I prefer a build system that guesses too many things are dependencies over one that guesses not enough (or none at all).

Solar wrote:
The -M options are making the compiler tell what it's doing, with regards to header files. :wink:

Sure, but that only works for GCC, and you still have to add those rules to your makefile. Tup can do this for any tool you want to automate, and it does it automatically.


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Mon May 08, 2017 3:12 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 21, 2011 9:47 pm
Posts: 286
Location: Tustin, CA USA
Octocontrabass wrote:
I prefer a build system that guesses too many things are dependencies over one that guesses not enough (or none at all).


I prefer a build system that builds the right things -- not too much and not too little. My goal is not to have a build that makes me wait an extra 2 minutes to rebuild the entire object list each time. Like I said earlier, I use make very frequently in my workflow and execute `make xxx` just to check my typing far more frequently than I execute the code to check the logic. tup does not sound like a good fit for that kind of workflow to me.

Also, for the record, I have nothing against tup -- I never heard of it before you mentioned it. Your last comment is a pretty big deal for me, and I know how I work.

_________________
Adam

The name is fitting: Century Hobby OS -- At this rate, it's gonna take me that long!
Read about my mistakes and missteps with this iteration: Journal

"Sometimes things just don't make sense until you figure them out." -- Phil Stahlheber


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Mon May 08, 2017 4:28 pm 
Offline
Member
Member

Joined: Mon Jan 03, 2011 6:58 pm
Posts: 283
eryjus wrote:
... I use make very frequently in my workflow and execute `make xxx` just to check my typing far more frequently than I execute the code to check the logic. tup does not sound like a good fit for that kind of workflow to me. ...


tup looks like a really good fit for that. It runs faster than make more often than not (and "never" slower), and would speed that process up for you.

- Monk


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Tue May 09, 2017 12:49 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
Or ninja, it's probably even faster without those unnecessary rebuilds when your elapsed time changes or whatever else in the environment. (ENV VARS, man, so if you do a cd, the bash will change env var for PWD, does it mean tup will rebuild??)

_________________
Learn to read.


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Tue May 09, 2017 2:29 am 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5099
eryjus wrote:
Like I said earlier, I use make very frequently in my workflow and execute `make xxx` just to check my typing far more frequently than I execute the code to check the logic.

I don't think I've ever tried, but the website briefly mentions that tup can do this too.

dozniak wrote:
ENV VARS, man, so if you do a cd, the bash will change env var for PWD, does it mean tup will rebuild??

Tup is smarter than that.


Top
 Profile  
 
 Post subject: Re: Makefile Question
PostPosted: Tue May 09, 2017 5:01 am 
Offline
Member
Member
User avatar

Joined: Thu Jul 12, 2012 7:29 am
Posts: 723
Location: Tallinn, Estonia
Octocontrabass wrote:


Nothing about env vars in that page.

_________________
Learn to read.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: SemrushBot [Bot] and 33 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group