mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 19:55:50 +00:00
Merge pull request #64 from r-burns/darwin-objc-flags
Apply -fno-objc-exceptions flag for ObjC sources only
This commit is contained in:
commit
04eb363df3
1 changed files with 3 additions and 4 deletions
|
@ -305,10 +305,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||||
# Set -fno-objc-exceptions, for consistency with -fno-exceptions earlier.
|
# Set -fno-objc-exceptions, for consistency with -fno-exceptions earlier.
|
||||||
# If we set only -fno-exceptions, fmt fails to compile when included from
|
# If we set only -fno-exceptions, fmt fails to compile when included from
|
||||||
# Objective-C++ because fmt tries try to use throw because __EXCEPTIONS is defined.
|
# Objective-C++ because fmt tries try to use throw because __EXCEPTIONS is defined.
|
||||||
#
|
add_compile_options("$<$<COMPILE_LANGUAGE:OBJC>:-fno-objc-exceptions>")
|
||||||
# TODO: Only enable this for Objective-C(++).
|
add_compile_options("$<$<COMPILE_LANGUAGE:OBJCXX>:-fno-objc-exceptions>")
|
||||||
# We get warnings if we enable this when building regular C(++) code.
|
dolphin_compile_definitions(FMT_EXCEPTIONS=0)
|
||||||
check_and_add_flag(NO_OBJC_EXCEPTIONS -fno-objc-exceptions)
|
|
||||||
|
|
||||||
find_library(APPKIT_LIBRARY AppKit)
|
find_library(APPKIT_LIBRARY AppKit)
|
||||||
find_library(APPSERV_LIBRARY ApplicationServices)
|
find_library(APPSERV_LIBRARY ApplicationServices)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue