Skip to content

Commit 2c72b41

Browse files
[lldb][CMake] Build LLDB.framework with -Wdocumentation in Xcode
llvm-svn: 372213
1 parent 858d755 commit 2c72b41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/cmake/modules/LLDBFramework.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ else()
4444
XCODE_ATTRIBUTE_MACOSX_DEPLOYMENT_TARGET "${MACOSX_DEPLOYMENT_TARGET}")
4545
endif()
4646

47+
# Add -Wdocumentation parameter
48+
set(CMAKE_XCODE_ATTRIBUTE_CLANG_WARN_DOCUMENTATION_COMMENTS "YES")
49+
4750
# Apart from this one, CMake creates all required symlinks in the framework bundle.
4851
add_custom_command(TARGET liblldb POST_BUILD
4952
COMMAND ${CMAKE_COMMAND} -E create_symlink

0 commit comments

Comments
 (0)