OLD | NEW |
1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 EXECUTABLES="tools/fftw-wisdom${NACL_EXEEXT} tests/bench${NACL_EXEEXT}" | 5 EXECUTABLES="tools/fftw-wisdom${NACL_EXEEXT} tests/bench${NACL_EXEEXT}" |
6 | 6 |
7 # Without these CFLAGS fftw fails to build for ARM | 7 # Without these CFLAGS fftw fails to build for ARM |
8 if [ "${NACL_ARCH}" = "arm" ]; then | 8 if [ "${NACL_ARCH}" = "arm" ]; then |
9 NACLPORTS_CPPFLAGS+=" -fomit-frame-pointer -fstrict-aliasing \ | 9 NACLPORTS_CPPFLAGS+=" -fomit-frame-pointer -fstrict-aliasing \ |
10 -fno-schedule-insns -ffast-math" | 10 -fno-schedule-insns -ffast-math" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 LogExecute ${SRC_DIR}/configure \ | 25 LogExecute ${SRC_DIR}/configure \ |
26 --host=nacl \ | 26 --host=nacl \ |
27 --prefix=${PREFIX} \ | 27 --prefix=${PREFIX} \ |
28 --enable-threads \ | 28 --enable-threads \ |
29 ${EXTRA_CONFIGURE_ARGS:-} | 29 ${EXTRA_CONFIGURE_ARGS:-} |
30 } | 30 } |
31 | 31 |
32 TestStep() { | 32 TestStep() { |
33 LogExecute make check EXEEXT= | 33 LogExecute make check EXEEXT= |
34 | |
35 if [ ${NACL_ARCH} = "pnacl" ]; then | |
36 for arch in x86-32 arm; do | |
37 for exe in ${EXECUTABLES}; do | |
38 local exe_noext=${exe%.*} | |
39 WriteLauncherScript ${exe_noext} $(basename ${exe_noext}.${arch}.nexe) | |
40 done | |
41 LogExecute make check EXEEXT= | |
42 done | |
43 fi | |
44 } | 34 } |
OLD | NEW |