Build libcling.so based on OBJECT "library" in CMake.
This commit is contained in:
parent
1d13fe7548
commit
2e08275916
@ -17,7 +17,7 @@ set( LLVM_LINK_COMPONENTS
|
||||
objcarcopts
|
||||
)
|
||||
|
||||
add_cling_library(clingInterpreter
|
||||
add_cling_library(clingInterpreter OBJECT
|
||||
AutoSynthesizer.cpp
|
||||
AutoloadCallback.cpp
|
||||
ASTTransformer.cpp
|
||||
@ -56,9 +56,16 @@ add_cling_library(clingInterpreter
|
||||
LINK_LIBS
|
||||
clangBasic
|
||||
clangAST
|
||||
clangParse
|
||||
clangCodeGen
|
||||
clangFrontend
|
||||
clangDriver
|
||||
clingUtils
|
||||
)
|
||||
|
||||
add_dependencies(clingInterpreter clangBasic clangAST LLVMCore)
|
||||
add_library(clingInterpreter-interface INTERFACE)
|
||||
target_sources(clingInterpreter-interface INTERFACE $<TARGET_OBJECTS:obj.clingInterpreter>)
|
||||
add_dependencies(clingInterpreter-interface clangBasic clangAST LLVMCore)
|
||||
|
||||
if(NOT WIN32)
|
||||
set_source_files_properties(ExceptionRTTI.cpp COMPILE_FLAGS "-fexceptions -frtti")
|
||||
|
@ -6,7 +6,11 @@
|
||||
# LICENSE.TXT for details.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
add_cling_library(clingMetaProcessor
|
||||
set(LIBS
|
||||
libclingInterpreter
|
||||
)
|
||||
|
||||
add_cling_library(clingMetaProcessor OBJECT
|
||||
Display.cpp
|
||||
InputValidator.cpp
|
||||
MetaLexer.cpp
|
||||
@ -16,6 +20,8 @@ add_cling_library(clingMetaProcessor
|
||||
|
||||
LINK_LIBS
|
||||
clangBasic
|
||||
clangLex
|
||||
clingInterpreter
|
||||
LLVMCore
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
# LICENSE.TXT for details.
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
add_cling_library(clingUtils
|
||||
add_cling_library(clingUtils OBJECT
|
||||
AST.cpp
|
||||
Validation.cpp
|
||||
|
||||
|
@ -11,4 +11,5 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/../lib/UserInterface/textinput
|
||||
OR CLING_INCLUDE_TESTS)
|
||||
add_subdirectory(driver)
|
||||
add_subdirectory(Jupyter)
|
||||
add_subdirectory(libcling)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user