Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 198461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:56:22+00:00 2026-05-11T16:56:22+00:00

Is there a way to limit the header files that Boost.Build recursively scans for

  • 0

Is there a way to limit the header files that Boost.Build recursively scans for #include directives to a particular directory or set of directories? I.e. I’d like it to recursively scan the header files within my project only. I know that they external dependencies are not going to change (and being Boost and Qt they’re pretty big). I end up with around 50,000 targets in the dependency tree which takes a while to process (resulting in a 1-2 minute build time even if no files have actually changed).

The only solution I’ve found so far is to take advantage of the INCLUDE environment variable (I’m using MSVC) – this means Boost.Build need not be informed of the include paths (I’m using the feature) and hence will not scan them. This seems a bit of a hack.

I feel like I must be missing something obvious because I haven’t been able to find other people experiencing similar problems, even though I ran into this almost immediately. The closest I’ve come is here.

Judging from the debug output (bjam -d 3) it also scans most of the header files more than once… I don’t know if this means that they are added as dependencies more than once, but certainly the cost of loading a file and scanning the entire contents must add up?

If I could tell it not to bother scanning a particular directory or set of directories in which I can guarantee the header files are not going to change, that would be perfect.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:56:22+00:00Added an answer on May 11, 2026 at 4:56 pm

    This question was also posted on the Boost mailing list and we got an answer to it here: http://lists.boost.org/boost-build/2009/04/21734.php.

    So it seems so far that the answer is that, at least out of the box, Boost.Build doesn’t have this feature, and the solution is to customise Boost.Build to your needs, which makes a certain amount of sense.

    However, I am still curious as to why this is not a more common problem for people. I see that caching the dependencies would reduce the time, but surely if we scan all external libraries we end up with a huge dependency tree, much of it redundant? When I’m working on a project, I’m not going to change the third party libraries very often at all, it seems a shame to pay for dependency checking on them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to limit a number of characters that are loaded using
Is there any way to use Zend_Filter_Encrypt with large files, without rising memory limit
Is there a way to limit the amount of workitems that gets returned from
Is there a way to limit git diff to changed files? I'd like to
Is there any way to limit the number of processors that the ThreadPool object
Is there a way to limit both the number of cores that java uses?
Is there a way to limit the number of rows in a SQL Server
Is there a way to limit a regular expression to 100 characters with a
Is there a way to limit the number of rows returned from content provider?
1) Is there any way to limit the scope of an Envers audit trail?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.