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:
Matthew Olsson 2024-05-24 04:35:34 -07:00 committed by Andrew Kaster
parent d9a277c139
commit c739ae3e02
Notes: sideshowbarker 2024-07-17 09:47:09 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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})

View file

@ -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