Skip to content
Snippets Groups Projects
Commit 819ad23c authored by Vassil Vassilev's avatar Vassil Vassilev
Browse files

Centralize the implementation of the clingtest option.

Add a force set the variable enabling the build of the cling binary.
parent 25a1b257
No related branches found
No related tags found
No related merge requests found
...@@ -379,10 +379,6 @@ if(testing) ...@@ -379,10 +379,6 @@ if(testing)
add_subdirectory(roottest) add_subdirectory(roottest)
endif() endif()
endif() endif()
if(clingtest)
message("-- cling test suite enabled: llvm / clang symbols in libCling will be exported!")
set(CLING_INCLUDE_TESTS ON)
endif()
endif() endif()
#---Packaging------------------------------------------------------------------------------------- #---Packaging-------------------------------------------------------------------------------------
......
...@@ -42,9 +42,13 @@ endif() ...@@ -42,9 +42,13 @@ endif()
set(LLVM_TARGETS_TO_BUILD ${ROOT_CLING_TARGET} CACHE STRING "Semicolon-separated list of targets to build, or \"all\".") set(LLVM_TARGETS_TO_BUILD ${ROOT_CLING_TARGET} CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
#---Build LLVM/Clang with symbol visibility=hidden-------------------------------------------------- if(clingtest)
if(NOT CLING_INCLUDE_TESTS) message("-- cling test suite enabled: llvm / clang symbols in libCling will be visible!")
set(CLING_INCLUDE_TESTS ON CACHE BOOL "")
else()
#---Build LLVM/Clang with symbol visibility=hidden--------------------------------------------------
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -fvisibility=hidden) ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -fvisibility=hidden)
set(CLANG_ENABLE_COMPILER OFF CACHE BOOL "")
endif() endif()
#--- Build LLVM/Clang with modules ----------------------------------------------------------------- #--- Build LLVM/Clang with modules -----------------------------------------------------------------
...@@ -88,9 +92,6 @@ set(LLVM_NOCLING "YES") ...@@ -88,9 +92,6 @@ set(LLVM_NOCLING "YES")
set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "") set(CLANG_ENABLE_STATIC_ANALYZER OFF CACHE BOOL "")
set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "") set(CLANG_ENABLE_ARCMT OFF CACHE BOOL "")
set(CLANG_ENABLE_FORMAT OFF CACHE BOOL "") set(CLANG_ENABLE_FORMAT OFF CACHE BOOL "")
if(NOT CLING_INCLUDE_TESTS)
set(CLANG_ENABLE_COMPILER OFF CACHE BOOL "")
endif()
#---Remove the inherited include_directories() #---Remove the inherited include_directories()
set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "") set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment