summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/PredicateExpander.cpp
diff options
context:
space:
mode:
authorKeno Fischer <keno@alumni.harvard.edu>2019-07-01 23:15:07 +0000
committerKeno Fischer <keno@alumni.harvard.edu>2019-07-01 23:15:07 +0000
commita7f00941efd740bc6eafc32307b9d92564785f85 (patch)
tree5c4ede927d42ff5e5a69ecd12fb9cff5238f4e9c /llvm/utils/TableGen/PredicateExpander.cpp
parentdbad95d3908c96bb4c6b6bbd58fe5fb7728e5e54 (diff)
downloadbcm5719-llvm-a7f00941efd740bc6eafc32307b9d92564785f85.tar.gz
bcm5719-llvm-a7f00941efd740bc6eafc32307b9d92564785f85.zip
[cmake] With utils disabled, don't build tblgen in cross mode
Summary: In cross mode, we build a separate NATIVE tblgen that runs on the host and is used during the build. Separately, we have a flag that disables building all executables in utils/. Of course generally, this doesn't turn off tblgen, since we need that during the build. In cross mode, however, that tblegen is useless since we never actually use it. Furthermore, it can be actively problematic if the cross toolchain doesn't like building executables for whatever reason. And even if building executables works fine, we can at least save compile time by omitting it from the target build. There's two changes needed to make this happen: - Stop creating a dependency from the native tool to the target tool. No such dependency is required for a correct build, so I'm not entirely sure why it was there in the first place. - If utils were disabled on the CMake command line and we're in cross mode, respect that by excluding it from the install target (using EXCLUDE_FROM_ALL). Reviewers: smeenai Differential Revision: https://reviews.llvm.org/D64032 llvm-svn: 364872
Diffstat (limited to 'llvm/utils/TableGen/PredicateExpander.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud