Skip to content

Commit 3f3d1c8

Browse files
committed
DRYing configure options
1 parent 0901177 commit 3f3d1c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

make-bitcode-for-javascript.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
CONFIG_ARGS="--enable-optimized --enable-targets=x86,js --enable-libcpp --disable-jit --disable-threads --disable-pthreads --disable-assertions --enable-cxx11 --enable-bindings=no --disable-zlib"
12
if [ "$#" -ne 1 ]; then
23
echo "Illegal number of parameters"
34
exit 1
@@ -17,14 +18,14 @@ echo "Building build tools"
1718
cd $LLVMDIR
1819
mkdir tool-build
1920
cd tool-build
20-
../configure --enable-optimized --enable-targets=x86,js --enable-libcpp --disable-jit --disable-threads --disable-pthreads --disable-assertions --enable-cxx11 &&
21+
../configure $CONFIG_ARGS &&
2122
BUILD_DIRS_ONLY=1 make -j4 || exit 1
2223
cd ..
2324

2425
echo "Building Bitcode of llvm tools"
2526
mkdir emscripten-build
2627
cd emscripten-build
27-
$EMSCRIPTEN_ROOT/emconfigure ../configure --with-extra-options=-Wno-warn-absolute-paths --enable-optimized --enable-targets=x86,js --enable-libcpp --disable-jit --disable-threads --disable-pthreads --disable-assertions --enable-bindings=no --disable-zlib || exit 2
28+
$EMSCRIPTEN_ROOT/emconfigure ../configure $CONFIG_ARGS --with-extra-options=-Wno-warn-absolute-paths || exit 2
2829
#sed -e '/HAVE_ARC4RANDOM/ s?^?//?' -i .bak include/llvm/Config/config.h
2930
mkdir -p Release/bin &&
3031
cp ../tool-build/Release/bin/* Release/bin &&

0 commit comments

Comments
 (0)