Skip to content
  • Stephen Kelly's avatar
    Memoize includes and defines from interface libraries. · 42ebb188
    Stephen Kelly authored
    This is similar in spirit to commit e48d8420 (Cache context-independent
    includes on evaluation., 2013-02-03), but it is needed since commit
    a1c4905f (Use the link information as a source of compile definitions
    and includes., 2013-02-12), which changed how includes and defines
    are determined. As they are now determined through the link interface,
    we need to cache the result of evaluating them through that.
    
    In the case of the includes, the result was already being cached
    and then immediately disposed. Store the result as a member variable
    instead to make use of the caching.
    42ebb188