From 0b96a2e842d7c856737ea49c44b5d9998eed40fc Mon Sep 17 00:00:00 2001 From: Mike Spertus Date: Mon, 28 Mar 2016 17:58:38 +0000 Subject: [PATCH] Use VS2015 Project Support for Natvis to eliminate the need to manually install natvis files When using Visual Studio 2015, cmake now puts the native visualizers in llvm.sln, so the developer automatically sees custom visualizations. Much thanks to ariccio who provided extensive help on this change. (manual installation still needed on VS2013) llvm-svn: 264601 --- llvm/utils/LLVMVisualizers/CMakeLists.txt | 7 +++++++ llvm/utils/{ => LLVMVisualizers}/llvm.natvis | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 llvm/utils/LLVMVisualizers/CMakeLists.txt rename llvm/utils/{ => LLVMVisualizers}/llvm.natvis (94%) diff --git a/llvm/utils/LLVMVisualizers/CMakeLists.txt b/llvm/utils/LLVMVisualizers/CMakeLists.txt new file mode 100644 index 0000000..3509779 --- /dev/null +++ b/llvm/utils/LLVMVisualizers/CMakeLists.txt @@ -0,0 +1,7 @@ +# Do this by hand instead of using add_llvm_utilities(), which +# tries to create a corresponding executable, which we don't want. +if (LLVM_ADD_NATIVE_VISUALIZERS_TO_SOLUTION) + set(LLVM_VISUALIZERS llvm.natvis) + add_custom_target(LLVMVisualizers SOURCES ${LLVM_VISUALIZERS}) + set_target_properties(LLVMVisualizers PROPERTIES FOLDER "Utils") +endif() diff --git a/llvm/utils/llvm.natvis b/llvm/utils/LLVMVisualizers/llvm.natvis similarity index 94% rename from llvm/utils/llvm.natvis rename to llvm/utils/LLVMVisualizers/llvm.natvis index 275800d..0ab921c 100644 --- a/llvm/utils/llvm.natvis +++ b/llvm/utils/LLVMVisualizers/llvm.natvis @@ -1,9 +1,11 @@ -- 2.7.4