]> git.tdb.fi Git - builder.git/commitdiff
Process paths after merging build info
authorMikko Rasa <tdb@tdb.fi>
Sat, 22 Jun 2013 08:45:06 +0000 (11:45 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 22 Jun 2013 08:45:06 +0000 (11:45 +0300)
source/component.cpp

index 5e918c841719967b99f904c0d3c5fae05aaeb158..5f50a6525b349eb921a04648cfd7bc44ad224384 100644 (file)
@@ -59,15 +59,14 @@ void Component::create_build_info()
        }
 
        final_build_info.update_from(package.get_build_info());
+       final_build_info.update_from(build_info);
+       build_info = final_build_info;
 
        for(BuildInfo::PathList::iterator i=build_info.incpath.begin(); i!=build_info.incpath.end(); ++i)
                *i = (package.get_source_directory() / *i).str();
        for(BuildInfo::PathList::iterator i=build_info.libpath.begin(); i!=build_info.libpath.end(); ++i)
                *i = (package.get_source_directory() / *i).str();
 
-       final_build_info.update_from(build_info);
-       build_info = final_build_info;
-
        for(UseList::const_iterator i=uses.begin(); i!=uses.end(); ++i)
        {
                /* Select an include path that contains all the sources for this and the