mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
16 lines
258 B
Plaintext
16 lines
258 B
Plaintext
|
#!/bin/sh -e
|
||
|
|
||
|
supports_memcheck_target() {
|
||
|
[ -f "$1" ] && grep -q '^memcheck$' "$1"
|
||
|
}
|
||
|
|
||
|
if supports_memcheck_target 'DoBuildFiles/targets.txt'; then
|
||
|
set -- cmake_adapter memcheck "$@"
|
||
|
else
|
||
|
assemble
|
||
|
set -- ctest_adapter -T memcheck "$@"
|
||
|
fi
|
||
|
|
||
|
exec "$@"
|
||
|
|