This is an archive of the discontinued LLVM Phabricator instance.

[CMAKE] fix LLVM_OPTIMIZED_TABLEGEN for Visual Studio
ClosedPublic

Authored by dfukalov on Nov 25 2016, 9:00 AM.

Details

Summary

At the moment optimized tablegen is generated by LLVM_USE_HOST_TOOLS variable that is not set for Visual Sudio since LLVM_ENABLE_ASSERTIONS depends on CMAKE_BUILD_TYPE value that is not equal to "DEBUG" in case of Visual Studio soltion generation.

Modified to do not depend on LLVM_ENABLE_ASSERTIONS value in VS and Xcode cases

Diff Detail

Repository
rL LLVM

Event Timeline

dfukalov updated this revision to Diff 79311.Nov 25 2016, 9:00 AM
dfukalov retitled this revision from to [CMAKE] fix LLVM_OPTIMIZED_TABLEGEN for Visual Studio.
dfukalov updated this object.
dfukalov added a reviewer: beanz.
beanz added inline comments.Nov 27 2016, 9:58 PM
CMakeLists.txt
532 ↗(On Diff #79311)

Rather than OR MSVC_IDE maybe use OR CMAKE_CONFIGURATION_TYPES, that would make this work for all multi-configuration generators.

dfukalov updated this revision to Diff 79400.Nov 28 2016, 7:10 AM
dfukalov updated this object.

refined with Chris suggestion

dfukalov marked an inline comment as done.Nov 28 2016, 7:11 AM
dfukalov added inline comments.
CMakeLists.txt
532 ↗(On Diff #79311)

good point, thanks!

beanz accepted this revision.Nov 28 2016, 9:01 AM
beanz edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Nov 28 2016, 9:01 AM
This revision was automatically updated to reflect the committed changes.
dfukalov marked an inline comment as done.