[LLVMbugs] [Bug 1040] NEW: Using llvm-config creates useless rebuilds

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 9 20:22:13 PST 2006


http://llvm.org/bugs/show_bug.cgi?id=1040

           Summary: Using llvm-config creates useless rebuilds
           Product: Build scripts
           Version: 1.6
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Makefiles
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rspencer at x10sys.com


Build times have increased after the tools were changed to use llvm-config to
generate the list of libraries to link with.  Here's the scenario:

1. llvm-config depends on all libraries so a change to any one of them results
   in llvm-config being rebuilt.

2. All tools depend on llvm-config so any change to it results in all tools being
   rebuilt.

For example, consider a change to lib/Transforms/Scalar. It should only affect
opt, gccas, gccld, and maybe llc and lli. However, when you rebuild, all tools
are relinked. There's no reason that llvm-dis, llvm-as, etc. need to be
relinked. Previously the makefiles did not re-link these tools for which a
dependency was not changed.

Its unclear what the correct solution is. We need an "existence" dependency for
the tools on llvm-config.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list