mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[CMAKE] Use SEH exceptions for c++ in clang amd64 build
This commit is contained in:
parent
976c4c10aa
commit
ec68a3311f
1 changed files with 2 additions and 2 deletions
|
@ -480,8 +480,8 @@ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:$<IF:$<BOOL:$<TARGET_PROPERTY:WIT
|
|||
# We disable exceptions, unless said so
|
||||
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:$<IF:$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>,-fexceptions,-fno-exceptions>>")
|
||||
|
||||
# G++ shipped with ROSBE uses sjlj exceptions. Tell Clang it is so
|
||||
if (CLANG)
|
||||
# G++ shipped with ROSBE uses sjlj exceptions on i386. Tell Clang it is so
|
||||
if (CLANG AND (ARCH STREQUAL "i386"))
|
||||
add_compile_options("$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>>:-fsjlj-exceptions>")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in a new issue