mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
CMake: Apply C++ compile options to Swift compilations
This ensures that we can get all the proper warnings on/off to get the same diagnostics and other options when loading C++ headers into the Swift frontend.
This commit is contained in:
parent
15f25d56b8
commit
1dff3ca0c4
Notes:
github-actions[bot]
2024-08-07 00:29:19 +00:00
Author: https://github.com/ADKaster
Commit: 1dff3ca0c4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/965
1 changed files with 2 additions and 1 deletions
|
@ -9,8 +9,9 @@ macro(add_cxx_compile_options)
|
|||
set(args "")
|
||||
foreach(arg ${ARGN})
|
||||
string(APPEND args ${arg}$<SEMICOLON>)
|
||||
add_compile_options("SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc ${arg}>")
|
||||
endforeach()
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX,ASM>:${args}>)
|
||||
add_compile_options($<$<COMPILE_LANGUAGE:C,CXX,ASM>:${args}>)
|
||||
endmacro()
|
||||
|
||||
macro(add_cxx_link_options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue