-
-
Save andir/2587f1288a883d97c41822bfa581ee4c to your computer and use it in GitHub Desktop.
no such file, mv, buildRustCrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_bin() { | |
crate_name=$1 | |
crate_name_=$(echo $crate_name | sed -e 's/-/_/g') | |
main_file="" | |
if [[ ! -z $2 ]]; then | |
main_file=$2 | |
fi | |
echo_build_heading $@ | |
noisily rustc --crate-name $crate_name_ $main_file --crate-type bin ${rustcOpts}\ | |
${crateFeatures} --out-dir target/bin --emit=dep-info,link -L dependency=target/deps \ | |
$LINK ${deps}$EXTRA_LIB --cap-lints allow \ | |
$BUILD_OUT_DIR $EXTRA_BUILD $EXTRA_FEATURES --color ${colors} | |
if [ "$crate_name" != "$crate_name_" ]; then | |
ls -la target/bin/ | |
stat target/bin/$crate_name_ | |
noisily mv target/bin/$crate_name_ target/bin/$crate_name | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building brotli-decompressor (src/bin/brotli-decompressor.rs) | |
Running rustc --crate-name brotli_decompressor src/bin/brotli-decompressor.rs --crate-type bin -C opt-level=3 -C codegen-units=1 --cfg feature="default" --out-dir target/bin --emit=dep-info,link -L dependency=target/deps --extern alloc_no_stdlib=/nix/store/z6p3zx52nv16mmvwxq6kqw014xdan2ig-rust_alloc-no-stdlib-1.3.0/lib/liballoc_no_stdlib-d9894210fc.rlib --extern brotli_decompressor=target/lib/libbrotli_decompressor-938c1fd840.rlib --cap-lints allow --color always | |
total 824 | |
drwxr-xr-x 2 nixbld nixbld 80 Sep 13 18:35 . | |
drwxrwxrwx 7 nixbld nixbld 200 Sep 13 18:35 .. | |
-rwxr-xr-x 1 nixbld nixbld 839384 Sep 13 18:35 brotli_decompressor | |
-rw-r--r-- 1 nixbld nixbld 302 Sep 13 18:35 brotli_decompressor.d | |
File: target/bin/brotli_decompressor | |
Size: 839384 Blocks: 1640 IO Block: 4096 regular file | |
Device: 28h/40d Inode: 1380653 Links: 1 | |
Access: (0755/-rwxr-xr-x) Uid: ( 1000/ nixbld) Gid: ( 100/ nixbld) | |
Access: 2018-09-13 18:35:58.090601725 +0000 | |
Modify: 2018-09-13 18:35:58.090601725 +0000 | |
Change: 2018-09-13 18:35:58.090601725 +0000 | |
Birth: - | |
Running mv target/bin/brotli_decompressor target/bin/brotli-decompressor | |
mv: cannot stat 'target/bin/brotli_decompressor': No such file or directory | |
builder for '/nix/store/drv9iwpl3vrc08b9cx9y0vhq80vc1lqw-rust_brotli-decompressor-1.3.1.drv' failed with exit code 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment