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

Side by Side Diff: ports/samba/cc_shim.sh

Issue 1456633004: Enable glibc/arm build of samba Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 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/samba/build.sh ('k') | ports/samba/nacl.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2015 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2015 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 is_host=0 6 is_host=0
7 7
8 for x in $*; do 8 for x in $*; do
9 if [ ${x} = -D_SAMBA_HOSTCC_ ]; then 9 if [ ${x} = -D_SAMBA_HOSTCC_ ]; then
10 is_host=1 10 is_host=1
11 fi 11 fi
12 if [[ ${x} = *asn1/gen_template_132.o ]]; then 12 if [[ ${x} = *asn1/gen_template_132.o ]]; then
13 is_host=1 13 is_host=1
14 fi 14 fi
15 if [[ ${x} = */compile_et_134.o ]]; then 15 if [[ ${x} = */compile_et_134.o ]]; then
16 is_host=1 16 is_host=1
17 fi 17 fi
18 if [[ ${x} = */print_version_130.o ]]; then
19 is_host=1
20 fi
21 if [[ ${x} = */version_130.o ]]; then
22 is_host=1
23 fi
18 done 24 done
19 25
20 26
21 if [ ${is_host} = 1 ]; then 27 if [ ${is_host} = 1 ]; then
22 shift 28 shift
23 gcc $* 29 gcc $*
24 else 30 else
25 $* 31 $*
26 fi 32 fi
OLDNEW
« no previous file with comments | « ports/samba/build.sh ('k') | ports/samba/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698