Bug 1599607 - lucetc toolchain artifact should unpack to a directory called "lucetc" r=firefox-build-system-reviewers,mshal

Differential Revision: https://phabricator.services.mozilla.com/D54823

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ricky Stewart 2019-11-27 20:02:55 +00:00
parent 5727683cd6
commit 93d3e01a91

View File

@ -10,7 +10,11 @@ export CXXFLAGS=$CFLAGS
export CXX=$MOZ_FETCHES_DIR/clang/bin/clang++
export AR=$MOZ_FETCHES_DIR/clang/bin/llvm-ar
export RUSTFLAGS="-C linker=$CXX -C link-arg=$CXXFLAGS"
make build
mkdir -p $UPLOAD_DIR
tar --xz -cf $UPLOAD_DIR/lucetc.tar.xz target/release/lucetc
# Put the lucetc binary in a directory called "lucetc", which is where consumers
# will expect it.
mkdir -p $UPLOAD_DIR/lucetc
mv target/release/lucetc $UPLOAD_DIR/lucetc
tar -C $UPLOAD_DIR --xz -cf $UPLOAD_DIR/lucetc.tar.xz lucetc
rm -rf $UPLOAD_DIR/lucetc