<commit_before>#!/bin/sh

export CFLAGS=-march=pentium2
export CXXFLAGS=-march=pentium2

git clone https://github.com/rust-lang/rust.git
git clone https://github.com/rust-lang/cargo.git

cd rust
cp ../src/i586-unknown-linux-gnu.mk ./mk/cfg
cp ../src/i586_unknown_linux_gnu.rs ./src/librustc_back/target
cp ../src/snapshot.py ./src/etc
./configure --target=i586-unknown-linux-gnu --host=i586-unknown-linux-gnu --build=i586-unknown-linux-gnu
make
cd ..

cd cargo
git submodule update --init
python -B src/etc/install-deps.py
./configure --target=i586-unknown-linux-gnu --local-rust-root=../rust/i586-unknown-linux-gnu/stage2/bin/rustc
make
cd ..

mkdir -p rust-i586
cp rust/LICENSE* rust/COPYRIGHT cargo/LICENSE* rust-i586
cp -r rust/i586-unknown-linux-gnu/stage2/* rust-i586
tar jcvf rust-nightly-i586-linux.tar.bz2 rust-i586
cp rust-nightly-i586-linux.tar.bz2 $CIRCLE_ARTIFACTS<commit_msg>fix build.sh<commit_after>#!/bin/sh

export CFLAGS=-march=pentium2
export CXXFLAGS=-march=pentium2

git clone https://github.com/rust-lang/rust.git
git clone https://github.com/rust-lang/cargo.git

cd rust
cp ../src/i586-unknown-linux-gnu.mk ./mk/cfg
cp ../src/i586_unknown_linux_gnu.rs ./src/librustc_back/target
cp ../src/snapshot.py ./src/etc
./configure --target=i586-unknown-linux-gnu --host=i586-unknown-linux-gnu
make
cd ..

cd cargo
git submodule update --init
python -B src/etc/install-deps.py
./configure --target=i586-unknown-linux-gnu --local-rust-root=../rust/i586-unknown-linux-gnu/stage2/bin/rustc
make
cd ..

mkdir -p rust-i586
cp rust/LICENSE* rust/COPYRIGHT cargo/LICENSE* rust-i586
cp -r rust/i586-unknown-linux-gnu/stage2/* rust-i586
tar jcvf rust-nightly-i586-linux.tar.bz2 rust-i586
cp rust-nightly-i586-linux.tar.bz2 $CIRCLE_ARTIFACTS
{'fraction_non_alphanumeric': 0.1575028636884307, 'fraction_numerical': 0.05326460481099656, 'mean_word_length': 3.7088948787061993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '689081', 'n_tokens_mistral': 745, 'n_tokens_neox': 674, 'n_words': 121}