OLD | NEW |
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 |
OLD | NEW |