mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 08:11:13 +00:00
ClangPlugins: Change name of variable used for test compile options
This makes it more clear what it is used for
This commit is contained in:
parent
d9a277c139
commit
c739ae3e02
Notes:
sideshowbarker
2024-07-17 09:47:09 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/c739ae3e02 Pull-request: https://github.com/SerenityOS/serenity/pull/24422 Issue: https://github.com/SerenityOS/serenity/issues/23880 Issue: https://github.com/SerenityOS/serenity/issues/23881 Issue: https://github.com/SerenityOS/serenity/issues/23900 Reviewed-by: https://github.com/ADKaster ✅
|
@ -9,7 +9,7 @@ function(clang_plugin target_name)
|
|||
|
||||
add_custom_target(${target_name}Target DEPENDS ${target_name})
|
||||
|
||||
set_property(GLOBAL APPEND PROPERTY CLANG_PLUGINS_ALL_COMPILE_OPTIONS -fplugin=${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/lib${target_name}.so)
|
||||
set_property(GLOBAL APPEND PROPERTY CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -fplugin=${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/lib${target_name}.so)
|
||||
|
||||
add_lagom_library_install_rules(${target_name})
|
||||
endfunction()
|
||||
|
|
|
@ -3,8 +3,8 @@ include(AddLLVM)
|
|||
|
||||
find_package(Python3 REQUIRED COMPONENTS Interpreter)
|
||||
|
||||
get_property(CLANG_PLUGINS_ALL_COMPILE_OPTIONS GLOBAL PROPERTY CLANG_PLUGINS_ALL_COMPILE_OPTIONS)
|
||||
list(APPEND CLANG_PLUGINS_ALL_COMPILE_OPTIONS -std=c++23 -Wno-user-defined-literals -Wno-literal-range)
|
||||
get_property(CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS GLOBAL PROPERTY CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS)
|
||||
list(APPEND CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS -std=c++23 -Wno-user-defined-literals -Wno-literal-range)
|
||||
|
||||
get_property(CLANG_PLUGINS_INCLUDE_DIRECTORIES TARGET AK PROPERTY INCLUDE_DIRECTORIES)
|
||||
list(APPEND CLANG_PLUGINS_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
|
||||
|
|
|
@ -18,7 +18,7 @@ config.enable_shared = @ENABLE_SHARED@
|
|||
config.host_arch = "@HOST_ARCH@"
|
||||
config.python_executable = "@Python3_EXECUTABLE@"
|
||||
# config.has_plugins = @CLANG_PLUGIN_SUPPORT@
|
||||
config.plugin_opts = "@CLANG_PLUGINS_ALL_COMPILE_OPTIONS@"
|
||||
config.plugin_opts = "@CLANG_PLUGINS_COMPILE_OPTIONS_FOR_TESTS@"
|
||||
config.plugin_includes = "@CLANG_PLUGINS_INCLUDE_DIRECTORIES@"
|
||||
|
||||
import lit.llvm
|
||||
|
|
Loading…
Reference in a new issue