update readme
[c11concurrency-benchmarks.git] / firefox-related / jsshell-c11tester.sh
1 #! /bin/sh
2
3 if [ -z $1 ] ; then
4     echo "usage: $0 <dirname>"
5 elif [ -d $1 ] ; then
6     echo "directory $1 already exists"
7 else
8     autoconf2.13
9     mkdir $1
10     cd $1
11     LLVM_ROOT="/scratch/llvm"
12     CC="clang" \
13     CXX="clang++" \
14     CFLAGS="-Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -L/scratch/fuzzer/random-fuzzer -lmodel" \
15     CXXFLAGS="-Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -L/scratch/fuzzer/random-fuzzer -lmodel" \
16     LDFLAGS="-Xclang -load -Xclang /scratch/llvm/build/lib/libCDSPass.so -L/scratch/fuzzer/random-fuzzer -lmodel" \
17             ../configure --disable-debug --enable-optimize="-O2 -gline-tables-only" --enable-llvm-hacks --disable-jemalloc
18     make -j 8
19 fi