OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 Google Inc. All rights reserved. | 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 """ | 7 """ |
8 Checks that C-only targets aren't linked against libstdc++. | 8 Checks that C-only targets aren't linked against libstdc++. |
9 """ | 9 """ |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 return 'libstdc++' in output or 'libc++' in output | 35 return 'libstdc++' in output or 'libc++' in output |
36 | 36 |
37 if LinksLibStdCpp('no_cpp'): | 37 if LinksLibStdCpp('no_cpp'): |
38 test.fail_test() | 38 test.fail_test() |
39 | 39 |
40 build_error_code = { | 40 build_error_code = { |
41 'xcode': [1, 65], # 1 for xcode 3, 65 for xcode 4 (see `man sysexits`) | 41 'xcode': [1, 65], # 1 for xcode 3, 65 for xcode 4 (see `man sysexits`) |
42 'make': 2, | 42 'make': 2, |
43 'ninja': 1, | 43 'ninja': 1, |
44 'cmake': 0, # CMake picks the compiler driver based on transitive checks. | 44 'cmake': 0, # CMake picks the compiler driver based on transitive checks. |
| 45 'xcode-ninja': [1, 65], |
45 }[test.format] | 46 }[test.format] |
46 | 47 |
47 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR, | 48 test.build('test.gyp', 'no_cpp_dep_on_cc_lib', chdir=CHDIR, |
48 status=build_error_code) | 49 status=build_error_code) |
49 | 50 |
50 test.pass_test() | 51 test.pass_test() |
OLD | NEW |