mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 05:20:00 +00:00
binaryen: omit binaryen-unittests in non-cross too (#547287)
This commit is contained in:
@@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||
strictDeps = true;
|
||||
|
||||
preConfigure = ''
|
||||
if [ $doCheck -eq 1 ]; then
|
||||
if [ -n "$doCheck" ]; then
|
||||
sed -i '/gtest/d' third_party/CMakeLists.txt
|
||||
rmdir test/spec/testsuite
|
||||
ln -s ${testsuite} test/spec/testsuite
|
||||
@@ -62,6 +62,14 @@ stdenv.mkDerivation rec {
|
||||
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib python3 ../check.py $tests
|
||||
'';
|
||||
|
||||
# bin/binaryen-unittests is absent on cross builds which don't have doCheck,
|
||||
# so delete it on non-cross builds too (thus removing gtest from the closure).
|
||||
postInstall = ''
|
||||
if [ -n "$doCheck" ]; then
|
||||
rm "$out/bin/binaryen-unittests"
|
||||
fi
|
||||
'';
|
||||
|
||||
tests = [
|
||||
"version"
|
||||
"wasm-opt"
|
||||
|
||||
Reference in New Issue
Block a user