Skip to content

Commit

Permalink
Fix unittests build when using external STP.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@154236 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Apr 7, 2012
1 parent b1d7d77 commit c97def2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions unittests/Expr/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
##===- unittests/Expr/Makefile -----------------------------*- Makefile -*-===##

LEVEL := ../..
include $(LEVEL)/Makefile.config

TESTNAME := Expr
STP_LIBS := stp_c_interface.a stp_AST.a stp_bitvec.a \
stp_constantbv.a stp_sat.a stp_simplifier.a
USEDLIBS := kleaverExpr.a kleeBasic.a $(STP_LIBS)
USEDLIBS := kleaverExpr.a kleeBasic.a
ifeq ($(ENABLE_EXT_STP),0)
USEDLIBS += $(STP_LIBS)
endif
LINK_COMPONENTS := support

include $(LEVEL)/Makefile.config
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest


ifeq ($(ENABLE_EXT_STP),1)
LIBS += -lstp
endif
12 changes: 9 additions & 3 deletions unittests/Solver/Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
##===- unittests/Solver/Makefile ---------------------------*- Makefile -*-===##

LEVEL := ../..
include $(LEVEL)/Makefile.config

TESTNAME := Solver
STP_LIBS := stp_c_interface.a stp_AST.a stp_bitvec.a \
stp_constantbv.a stp_sat.a stp_simplifier.a
USEDLIBS := kleaverSolver.a kleaverExpr.a kleeSupport.a kleeBasic.a $(STP_LIBS)
USEDLIBS := kleaverSolver.a kleaverExpr.a kleeSupport.a kleeBasic.a
ifeq ($(ENABLE_EXT_STP),0)
USEDLIBS += $(STP_LIBS)
endif
LINK_COMPONENTS := support

include $(LEVEL)/Makefile.config
include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest

#LIBS += -lstp
ifeq ($(ENABLE_EXT_STP),1)
LIBS += -lstp
endif

0 comments on commit c97def2

Please sign in to comment.