Got C++ unit tests running on Linux again

llvm-svn: 225604
This commit is contained in:
Vince Harron 2015-01-11 09:42:12 +00:00
parent c71a566d00
commit e38b24a72b
1 changed files with 8 additions and 3 deletions

View File

@ -9,8 +9,13 @@ ifneq ($(wildcard $(THIS_FILE_DIR)../../llvm/utils/unittest/googletest),)
# Assume lldb/llvm (MacOSX Xcode) directory form.
LLVM_BASE_DIR := $(realpath $(THIS_FILE_DIR)../../llvm)
else
# Assume llvm/tools/lldb (Non-MacOSX) directory form.
LLVM_BASE_DIR := $(realpath $(THIS_FILE_DIR)../../../..)
ifneq ($(wildcard $(THIS_FILE_DIR)../../../llvm/utils/unittest/googletest),)
# Assume lldb/llvm side-by-side configuration (with symbolic links)
LLVM_BASE_DIR := $(realpath $(THIS_FILE_DIR)../../../llvm)
else
# Assume llvm/tools/lldb (Non-MacOSX) directory form.
LLVM_BASE_DIR := $(realpath $(THIS_FILE_DIR)../../../..)
endif
endif
ifeq ($(GTEST_DIR),)
@ -88,4 +93,4 @@ include $(realpath $(THIS_FILE_DIR)../../test/make/Makefile.rules)
test:: $(EXE)
$(realpath $(EXE))
endif
endif