citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 6b2ff15d007dc9e79ea2b412cda6e81b4d803429
parent 9dba47efd95a209a93434b0f5e7d8606afcfa5a3
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Sat, 11 Jun 2016 17:25:01 -0600

tests: use the right operating system library name

Diffstat:
MSCV/Project.pm | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/SCV/Project.pm b/SCV/Project.pm @@ -52,7 +52,11 @@ EOF # Use the tools in this source tree my $cwd = getcwd; $ENV{CITRUN_PATH} = "$cwd/share"; - $ENV{CITRUN_LIB} = "$cwd/lib/libcitrun.so.0.0"; + + $ENV{CITRUN_LIB} = "$cwd/lib/libcitrun.so.0.0" if ($^O eq "openbsd"); + $ENV{CITRUN_LIB} = "$cwd/lib/libcitrun.dylib" if ($^O eq "darwin"); + $ENV{CITRUN_LIB} = "$cwd/lib/libcitrun.so" if ($^O eq "linux"); + $ENV{PATH} = "$ENV{CITRUN_PATH}:$ENV{PATH}"; my $ret = system( "cd $tmp_dir && jam" );