Merge pull request #57 from nmattia/nm-build-build-deps

Ensure build-dependencies are built
This commit is contained in:
Nicolas Mattia 2020-01-21 14:47:04 +01:00 committed by GitHub
commit 52a4a55ba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,6 +142,12 @@ rec
pushd $out/$member > /dev/null
mkdir -p src
touch src/lib.rs
# pretend there's a `build.rs`, otherwise cargo doesn't build
# the `[build-dependencies]`. Custom locations of build scripts
# aren't an issue because we strip the `build` field in
# `fixupCargoToml`; so cargo always thinks there's a build
# script which is `./build.rs`.
echo 'fn main(){}' > build.rs
popd > /dev/null
done
'';