OSDN Git Service

[CMAKE] fix LLVM_OPTIMIZED_TABLEGEN for Visual Studio
authorDaniil Fukalov <daniil.fukalov@amd.com>
Mon, 28 Nov 2016 17:12:09 +0000 (17:12 +0000)
committerDaniil Fukalov <daniil.fukalov@amd.com>
Mon, 28 Nov 2016 17:12:09 +0000 (17:12 +0000)
commit8459d93b1855c58f18357ab600e77a4b3ace4e13
treedaed618141b321cb989db0a4df31df26cbed63a0
parent5e45db3e2ec0418e3008fcc1b1417aa388ab9984
[CMAKE] fix LLVM_OPTIMIZED_TABLEGEN for Visual Studio

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

Reviewers: beanz

Subscribers: RKSimon, llvm-commits, mgorny

Differential Revision: https://reviews.llvm.org/D27135

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288042 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt