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

Side by Side Diff: tools/llvm/chrome.cc.arm.sh

Issue 10736073: Rename tools/llvm to tools/trusted_cross_toolchains (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/llvm/chrome.cc.host.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # This is wrapper around arm-linux-gnueabi-gcc/g++ so we can easily sneak
8 # in some extra flags required for building chrome using the nacl
9 # arm trusted TC.
10 # This script will be copied into the the arm trusted TC jail
11 # and changes behavior slightly depending on what name is used to invoke it.
12
13 set -o nounset
14 set -o errexit
15
16 readonly JAIL=$(dirname $0)
17
18 if [[ $(basename $0) == *c++* ]] ; then
19 readonly COMPILER=arm-linux-gnueabi-g++-4.5
20 else
21 readonly COMPILER=arm-linux-gnueabi-gcc-4.5
22 fi
23
24 # NOTE: the glib-2.0 gdk-pixbuf-2.0 should be inferred via pkg-config
25 # but something is not quite right yet with jail setup
26
27 ${COMPILER} \
28 -isystem ${JAIL}/usr/include \
29 -I${JAIL}/usr/lib/arm-linux-gnueabi/glib-2.0/include \
30 -I${JAIL}/usr/include/gdk-pixbuf-2.0 \
31 -Wl,-rpath-link=${JAIL}/usr/lib/arm-linux-gnueabi \
32 -Wl,-rpath-link=${JAIL}/usr/lib \
33 -Wl,-rpath-link=${JAIL}/lib/arm-linux-gnueabi \
34 -L${JAIL}/lib \
35 -L${JAIL}/usr/lib \
36 -L${JAIL}/lib/arm-linux-gnueabi \
37 -L${JAIL}/usr/lib/arm-linux-gnueabi \
38 "$@"
OLDNEW
« no previous file with comments | « no previous file | tools/llvm/chrome.cc.host.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698