Skip to content

Commit 8eeaa64

Browse files
authored
Merge pull request #98 from TheBlueMatt/main
Fix OSX building by not redirecting to `/dev/null`
2 parents 6e34cb3 + 5ae9d01 commit 8eeaa64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

genbindings.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,9 @@ fi
336336
if [ "$2" = "true" ]; then
337337
clang++ $LOCAL_CFLAGS -std=c++11 demo.cpp target/debug/libldk.a -ldl
338338
strip ./a.out
339+
time ./a.out
339340
echo " C++ Bin size and runtime w/o optimization:"
340341
ls -lha a.out
341-
./a.out > /dev/null
342342
fi
343343

344344
# Then, check with memory sanitizer, if we're on Linux and have rustc nightly
@@ -490,9 +490,9 @@ if [ "$2" = "true" ]; then
490490
fi
491491

492492
strip ./a.out
493+
time ./a.out
493494
echo "C++ Bin size and runtime with only RL (LTO) optimized:"
494495
ls -lha a.out
495-
./a.out > /dev/null
496496

497497
if [ "$CLANGPP" != "" ]; then
498498
# If we can use cross-language LTO, use it for building C dependencies (i.e. libsecp256k1) as well
@@ -562,9 +562,9 @@ if [ "$CLANGPP" != "" -a "$LLD" != "" ]; then
562562
$CLANGPP $LOCAL_CFLAGS -flto -fuse-ld=$LLD -O2 -c demo.cpp -o demo.o
563563
$CLANGPP $LOCAL_CFLAGS -flto -fuse-ld=$LLD -Wl,--lto-O2 -Wl,-O2 -O2 demo.o target/release/libldk.a -ldl
564564
strip ./a.out
565+
time ./a.out
565566
echo "C++ Bin size and runtime with cross-language LTO:"
566567
ls -lha a.out
567-
./a.out > /dev/null
568568
fi
569569
fi
570570
else

0 commit comments

Comments
 (0)