mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:25:49 +00:00
[CMAKE] Allow compiling amd64 port with GCC on Windows
Dedicated to Daniel
This commit is contained in:
parent
eae3db10ae
commit
0f723105c6
4 changed files with 19 additions and 2 deletions
|
@ -20,7 +20,13 @@ if(MSVC OR ((CMAKE_C_COMPILER_ID STREQUAL "Clang") AND (ARCH STREQUAL "amd64")))
|
|||
elseif((CMAKE_C_COMPILER_ID STREQUAL "GNU") AND (ARCH STREQUAL "amd64"))
|
||||
# for GCC amd64 this is just an interface library, with our home-made plugin
|
||||
add_library(pseh INTERFACE)
|
||||
target_compile_options(pseh INTERFACE -fplugin=$<TARGET_FILE:native-gcc_plugin_seh>)
|
||||
if (CMAKE_HOST_WIN32)
|
||||
target_compile_options(pseh INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:C>:-fplugin=$<TARGET_FILE:native-gcc_plugin_seh>>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:-fplugin=$<TARGET_FILE:native-g++_plugin_seh>>)
|
||||
else()
|
||||
target_compile_options(pseh INTERFACE $<$<COMPILE_LANGUAGE:C,CXX>:-fplugin=$<TARGET_FILE:native-gcc_plugin_seh>>)
|
||||
endif()
|
||||
else()
|
||||
|
||||
if(USE_PSEH3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue