Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: ports/libgit2/build.sh

Issue 730193002: Fix more compile failures caused by recent ARM toolchain upgrade. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ports/cairo/nacl.patch ('k') | ports/libtommath/build.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 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="libgit2_clar" 5 EXECUTABLES="libgit2_clar"
6 6
7 # Workaround for arm-gcc bug:
8 # https://code.google.com/p/nativeclient/issues/detail?id=3205
9 # TODO(sbc): remove this once the issue is fixed
10 if [ "${NACL_ARCH}" = "arm" ]; then
11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp"
12 fi
13
7 if [ "${NACL_SHARED}" != "1" ]; then 14 if [ "${NACL_SHARED}" != "1" ]; then
8 EXTRA_CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF" 15 EXTRA_CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF"
9 fi 16 fi
10 17
11 if [ "${NACL_LIBC}" = "newlib" ]; then 18 if [ "${NACL_LIBC}" = "newlib" ]; then
12 NACLPORTS_CPPFLAGS="-I${NACLPORTS_INCLUDE}/glibc-compat" 19 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
13 # newlib headers generate a lot of char-subscript warnings 20 # newlib headers generate a lot of char-subscript warnings
14 # for macros such as tolower() 21 # for macros such as tolower()
15 NACLPORTS_CPPFLAGS+=" -Wno-char-subscripts" 22 NACLPORTS_CPPFLAGS+=" -Wno-char-subscripts"S
16 if [ "$NACL_ARCH" != "arm" ]; then 23 if [ "$NACL_ARCH" != "arm" ]; then
17 # Our x86 version of gcc generates a lot of strict aliasing 24 # Our x86 version of gcc generates a lot of strict aliasing
18 # warnings. 25 # warnings.
19 NACLPORTS_CPPFLAGS+=" -fno-strict-aliasing" 26 NACLPORTS_CPPFLAGS+=" -fno-strict-aliasing"
20 fi 27 fi
21 fi 28 fi
OLDNEW
« no previous file with comments | « ports/cairo/nacl.patch ('k') | ports/libtommath/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698