diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-06-28 01:07:40 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-06-28 01:07:40 +0200 |
commit | 1cc82e4db025aa4a3f1133d8ae27eefc49ecf242 (patch) | |
tree | 831c3654b42484b5941e826b5f865d0a182fbdc0 | |
parent | acce32db93d914d6e9d94d0b28a246a7d57e2253 (diff) | |
download | wireshark-notes-1cc82e4db025aa4a3f1133d8ae27eefc49ecf242.tar.gz |
sync-build.sh: allow to specify target
Useful to build just tshark if I want to test a dissector.
-rwxr-xr-x | sync-build.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sync-build.sh b/sync-build.sh index afcb2e2..40a78c2 100755 --- a/sync-build.sh +++ b/sync-build.sh @@ -14,7 +14,7 @@ # - libnotify for notifications when ready. # # Usage: -# $0 [buildhost] +# $0 [buildhost] [ninja targets] # - buildhost defaults to wireshark-builder (you can use user@host) # - Optional env vars: # * CC, CXX, CFLAGS, CXXFLAGS - C/C++ compiler binary/flags @@ -73,6 +73,9 @@ else force_cmake=false fi +# Drop $remotehost +shift + # PATH is needed for /usr/bin/core_perl/pod2man (PCAP) # ENABLE_QT5=1: install qt5-tools on Arch Linux # 32-bit libs on Arch: lib32-libcap lib32-gnutls lib32-gtk3 lib32-krb5 @@ -114,7 +117,9 @@ if $force_cmake || [ ! -e $builddir/CMakeCache.txt ]; then -DCMAKE_CXX_FLAGS=$(printf %q "$CXXFLAGS") \ -DCMAKE_EXPORT_COMPILE_COMMANDS=1 fi && -time ninja -C $builddir +time \ +ASAN_OPTIONS=detect_leaks=0 \ +ninja -C $builddir $(printf ' %q' "$@") '" |