Skip to content

Commit

Permalink
Linux build support.
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Feb 13, 2014
1 parent 3cfedf6 commit 6bf5876
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ js/src/build-android/*
js/src/build-ios/*
js/src/build-win32/*
js/src/build-osx/*
js/src/build-linux/*
!js/src/build-android/build.sh
!js/src/build-ios/build.sh
!js/src/build-win32/build.sh
!js/src/build-osx/build.sh
!js/src/build-linux/build.sh

# Ignore the Android dist files/directories
./include
./lib
js/src/autom4te.cache

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
- JIT is enabled
- compiled in RELEASE mode

### Linux

- JIT is enabled
- compiled in RELEASE mode

## About the patches

Expand Down
2 changes: 1 addition & 1 deletion js/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ selfhosting:: selfhosted.out.h

selfhosting_srcs := \
$(srcdir)/builtin/Utilities.js \
$(srcdir)/builtin/Array.js \
$(srcdir)/builtin/array.js \
$(srcdir)/builtin/Date.js \
$(srcdir)/builtin/Intl.js \
$(srcdir)/builtin/IntlData.js \
Expand Down
26 changes: 26 additions & 0 deletions js/src/build-linux/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/sh
set -e

cpus=`nproc`

echo "$cpus cpus detected"

# configure
../configure --disable-tests \
--disable-shared-js \
--enable-strip \
--enable-strip-install \
--disable-root-analysis \
--disable-exact-rooting \
--enable-optimize=-O3 \
--enable-llvm-hacks \
--disable-debug \
--without-intl-api \
--disable-threadsafe
# make
make clean
make -j$cpus

# strip
strip -S libjs_static.a

Empty file modified js/src/make-source-package.sh
100644 → 100755
Empty file.

0 comments on commit 6bf5876

Please sign in to comment.