Ah, I had to cargo update first as I haven’t updated my deps in a while. I’ve done that and pushed to the update-deps branch (git clone -b update-deps https://github.com/brdgme/api.git)
My rustc details (I use nightly by default):
$ rustup show
Default host: x86_64-unknown-linux-gnu
installed toolchains
--------------------
stable-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu (default)
installed targets for active toolchain
--------------------------------------
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
active toolchain
----------------
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.22.0-nightly (692b94ae2 2017-10-09)
Also, as @joshlf suggests, the build works using one option or the other, but not both at the same time:
$ env RUSTFLAGS='-Z thinlto' cargo +nightly build --release
...
Finished release [optimized] target(s) in 308.90 secs
$ env RUSTFLAGS='-C codegen-units=16' cargo +nightly build --release
...
Finished release [optimized] target(s) in 164.39 secs