summaryrefslogtreecommitdiff
path: root/src/expr
diff options
context:
space:
mode:
authormakaimann <makaim@stanford.edu>2017-04-18 08:49:17 -0700
committermakaimann <makaim@stanford.edu>2017-04-18 08:49:17 -0700
commitb32af0cc004b543704b37101fd281477e302eb5b (patch)
treef1a43ed7ec3414ff38187778921bf541bca1d9a7 /src/expr
parent25fcfe393d1d8808a866a5f1cfc4f7edf273316d (diff)
Coverage fix
Forcing some make variables to be absolute paths lcov does not (officially) support relative paths src/expr and src/options in particular were breaking it
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/expr/Makefile.am b/src/expr/Makefile.am
index c04de4421..d5f8de462 100644
--- a/src/expr/Makefile.am
+++ b/src/expr/Makefile.am
@@ -1,6 +1,19 @@
+# Forcing some make variables to be actual absolute paths to fix Coverage
+# lcov does not support relative paths and src/options and src/expr
+# in particular were breaking it
+# Note: variable declarations may be moved in generated Makefile
+# see src/expr/Makefile.am
+
+VPATH = $(realpath @srcdir@)
+srcdir = $(realpath @srcdir@)
+abs_srcdir = $(realpath @abs_srcdir@)
+abs_top_srcdir = $(realpath @abs_top_srcdir@)
+top_srcdir = $(realpath @top_srcdir@)
+
+
AM_CPPFLAGS = \
-D__BUILDING_CVC4LIB \
- -I@builddir@/.. -I@srcdir@/../include -I@srcdir@/..
+ -I$(realpath @builddir@/..) -I$(realpath @srcdir@/../include) -I$(realpath @srcdir@/..)
AM_CXXFLAGS = -Wall -Wno-unknown-pragmas $(FLAG_VISIBILITY_HIDDEN)
noinst_LTLIBRARIES = libexpr.la
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback