Commit 98669ac
committed
[clang] Only build clang-tblgen if it is actually needed
It's possible to build clang with an existing clang-tblgen (common when
cross-compiling, for instance) by setting CLANG_TABLEGEN_EXE. If this
is the case then building another copy of clang-tblgen that won't be
used is pointless.
However, currently the clang tests explicitly depend on clang-tblgen
being built, so also check if CLANG_INCLUDE_TESTS is enabled to ensure
that the targets exist.1 parent ed113e7 commit 98669ac
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| |||
0 commit comments