diff options
author | makaimann <makaim@stanford.edu> | 2017-04-18 08:49:17 -0700 |
---|---|---|
committer | makaimann <makaim@stanford.edu> | 2017-04-18 08:49:17 -0700 |
commit | b32af0cc004b543704b37101fd281477e302eb5b (patch) | |
tree | f1a43ed7ec3414ff38187778921bf541bca1d9a7 /src/expr | |
parent | 25fcfe393d1d8808a866a5f1cfc4f7edf273316d (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.am | 15 |
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 |