Skip to content

Commit

Permalink
Better fix for ROOT-8267
Browse files Browse the repository at this point in the history
  • Loading branch information
peremato committed Jul 13, 2016
1 parent c51dd0c commit ef02add
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions interpreter/cling/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -313,12 +313,17 @@ endmacro(add_cling_executable)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

if(DEFINED ROOT_BINARY_DIR)
# Building as part of ROOT.
# this is needed when building Cling as part of ROOT:
# Building as part of ROOT (CMake)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/../llvm/src/tools/clang/include
${CMAKE_CURRENT_SOURCE_DIR}/../llvm/src/tools/clang/include
)
elseif(DEFINED ROOT_CLASSIC)
# Building as part of ROOT (classic)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}/../llvm/obj/tools/clang/include
${CMAKE_CURRENT_SOURCE_DIR}/../llvm/src/tools/clang/include
)
else()
# and this when building Cling standalone:
include_directories(BEFORE
Expand Down
4 changes: 2 additions & 2 deletions interpreter/llvm/Module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

MODNAME := llvm
MODDIR := $(ROOT_SRCDIR)/interpreter/$(MODNAME)
LLVMDIRO := $(call stripsrc,$(MODDIR)/src)
LLVMDIRO := $(call stripsrc,$(MODDIR)/obj)
LLVMDIRI := $(call stripsrc,$(MODDIR)/inst)

ifneq ($(BUILTINLLVM),yes)
Expand Down Expand Up @@ -186,7 +186,7 @@ $(LLVMDEPO): $(LLVMDEPS)
$$LLVM_HOST \
$$LLVM_TARGET \
-DCMAKE_INSTALL_PREFIX=$(ROOT_OBJDIR)/$(LLVMDIRI) \
-DROOT_BINARY_DIR=$(ROOT_OBJDIR) \
-DROOT_CLASSIC=ON \
-DLLVM_BUILD_DOCS=OFF \
-DLLVM_BUILD_TESTS=OFF \
-DLLVM_ENABLE_WARNINGS=ON \
Expand Down

0 comments on commit ef02add

Please sign in to comment.