[lldb][CMake] Build LLDB.framework with -Wdocumentation in Xcode

llvm-svn: 372213
This commit is contained in:
Stefan Granitz 2019-09-18 10:41:13 +00:00
parent 858d755c27
commit 2c72b41757
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ else()
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "${MACOSX_DEPLOYMENT_TARGET}")
endif()
# Add -Wdocumentation parameter
set(CMAKE_XCODE_ATTRIBUTE_CLANG_WARN_DOCUMENTATION_COMMENTS "YES")
# Apart from this one, CMake creates all required symlinks in the framework bundle.
add_custom_command(TARGET liblldb POST_BUILD
COMMAND ${CMAKE_COMMAND} -E create_symlink