Skip to content

Instantly share code, notes, and snippets.

@rurban
Last active August 29, 2015 14:01
Show Gist options
  • Save rurban/6c7fbaf2f30c7e42dec6 to your computer and use it in GitHub Desktop.
Save rurban/6c7fbaf2f30c7e42dec6 to your computer and use it in GitHub Desktop.
/usr/src/parrot/fulltest.sh - make optimized, tune it and run all tests
#!/bin/sh
make-4.0 -j4 -s clean archclean
# clang is the fastest
perl Configure.pl --optimize --cc="clang" --link="clang" --ld="clang" --cxx="clang" \
--maintainer
set -x
sed -i 's/-shared -O2/-shared -Wl,-O1/' Makefile config_lib.pir lib/Parrot/Config/Generated.pm
# highly specific to my system
sed -i 's|-fstack-protector -L/usr/local/lib|-fstack-protector -L/usr/local/lib -Wl,--as-needed -Wl,-z,relro -Wl,-z,now|' Makefile config_lib.pir lib/Parrot/Config/Generated.pm
# highly specific to my system
sed -i 's|-Wl,-rpath,/usr/local/lib/perl5/5.14.4/x86_64-linux/CORE||' Makefile config_lib.pir lib/Parrot/Config/Generated.pm
sed -i 's,-O2,-O3,' config_lib.pir lib/Parrot/Config/Generated.pm
sed -i 's,-O2 -f,-O3 -f,' Makefile
sed -i 's,-O2 \$,-O3 \$,' Makefile
set +x
make-4.0 -j4 -s fulltest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment