forked from Mars999/regal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nacl-regal.sh
executable file
·31 lines (24 loc) · 925 Bytes
/
nacl-regal.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Any arguments passed to this script will be passed onto make. It is
# recommend to pass -j<N> to speed up the build.
# Notes:
# - Pepper 25 is needed for the ARM build.
# - Makefile needs to be specified for branches that have GNUmakefiles
# - MODE=debug for debug-mode build
# - NACL_LIBC=glibc on the command-line for glibc rather than newlib
# - CCACHE=ccache is supported (and recommended)
set -e
echo "Building x86_64"
make -f Makefile SYSTEM=nacl-x86_64 $*
echo "Building i686"
make -f Makefile SYSTEM=nacl-i686 $*
if [ "$NACL_LIBC" != "glibc" ]; then
# No glibc support as yet on ARM
echo "Building ARM"
make -f Makefile SYSTEM=nacl-arm $*
fi
echo "Building pnacl"
make -f Makefile SYSTEM=nacl-pnacl $*