Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building with clang-cl #100

Open
wants to merge 3 commits into
base: getsentry
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ if(MSVC)
$<$<COMPILE_LANGUAGE:C,CXX>:/wd4577> # 'noexcept' used with no exception handling mode specified.
$<$<COMPILE_LANGUAGE:C,CXX>:/wd4996> # 'X' was declared deprecated.
)

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") # clang-cl
target_compile_options(crashpad_interface INTERFACE
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-missing-field-initializers> # missing field initializer
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-sign-compare> # comparison of integers of different signs
$<$<COMPILE_LANGUAGE:C,CXX>:-Wno-microsoft-cast> # implicit conversion between pointer-to-function and pointer-to-object
)
endif()

elseif(MINGW)
# redirect to wmain
# FIXME: cmake 3.13 added target_link_options
Expand Down
Loading