Make check now uses coz instead of linking directly with libcoz

This commit is contained in:
Charlie Curtsinger 2016-12-08 16:42:09 -06:00
parent 32bc55ac8e
commit f38f22e868

View File

@ -8,8 +8,8 @@ include $(ROOT)/common.mk
check:: libcoz.so
printf "int main(int argc, char *argv[])\n{\nreturn (0);\n}\n" > x.c
gcc -Wl,-rpath,`pwd` -o x x.c libcoz.so -ldl || ( $(RM) x x.c ; exit 1)
./x
gcc -g -o x x.c || ( $(RM) x x.c ; exit 1)
../coz run --- ./x
if grep -q time= profile.coz; then echo success: coz profiler ran as it should.; fi
$(RM) -f x.c x profile.coz