Skip to content

Instantly share code, notes, and snippets.

@Razer6
Created May 10, 2017 13:07
Show Gist options
  • Save Razer6/ef58153779c11b42c1d9e5e12d08628f to your computer and use it in GitHub Desktop.
Save Razer6/ef58153779c11b42c1d9e5e12d08628f to your computer and use it in GitHub Desktop.
llvm commit
9b2a3ba3ecd7ff585845232330de4403a8bda7d6 is the first bad commit
commit 9b2a3ba3ecd7ff585845232330de4403a8bda7d6
Author: Duncan P. N. Exon Smith <dexonsmith@apple.com>
Date: Sat Feb 13 22:58:43 2016 +0000
Support: Fix incremental build when re-configuring targets
r180893 added an indirect include of llvm/Config/Targets.def to
llvm/Support/CodeGen.h, which in turn is included by things like
llvm/IR/Module.h. After a full build of LLVM and Clang, ninja had to
rebuild 1274 files after reconfiguring.
This commit strips CodeGen.h back down to just a pile of enums and moves
the expensive includes over to CodeGenCWrappers.h (which is only
included in two places). This gets ninja down to 88 files if you
reconfigure with, e.g., -DLLVM_TARGETS_TO_BUILD=X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260835 91177308-0d34-0410-b5e6-96231b3b80d8
:040000 040000 c1e5c10337ced489f540b1de6aee68e7a8414f29 af1f4e155784bda85753f7a86a185e4830327ad2 M include
:040000 040000 be54a0f38a2474a9eaff9f662a73c40a16c0ec43 b325b543a900569ca327b3cabe0545b37293d773 M lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment