mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[CMAKE] Use SEH exceptions for c++ in clang amd64 build
This commit is contained in:
parent
976c4c10aa
commit
ec68a3311f
|
@ -480,8 +480,8 @@ add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:$<IF:$<BOOL:$<TARGET_PROPERTY:WIT
|
||||||
# We disable exceptions, unless said so
|
# We disable exceptions, unless said so
|
||||||
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:$<IF:$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>,-fexceptions,-fno-exceptions>>")
|
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
|
# G++ shipped with ROSBE uses sjlj exceptions on i386. Tell Clang it is so
|
||||||
if (CLANG)
|
if (CLANG AND (ARCH STREQUAL "i386"))
|
||||||
add_compile_options("$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>>:-fsjlj-exceptions>")
|
add_compile_options("$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<BOOL:$<TARGET_PROPERTY:WITH_CXX_EXCEPTIONS>>>:-fsjlj-exceptions>")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue