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

Side by Side Diff: test/make_global_settings/wrapper/gyptest-wrapper.py

Issue 23475025: ninja/mac: Don't link c-file-only targets to libstdc++ Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 3 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2013 Google Inc. All rights reserved. 3 # Copyright (c) 2013 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 Verifies *_wrapper in make_global_settings. 8 Verifies *_wrapper in make_global_settings.
9 """ 9 """
10 10
(...skipping 19 matching lines...) Expand all
30 endif 30 endif
31 """ 31 """
32 link_expected = 'LINK ?= $(abspath distlink) $(abspath clang++)' 32 link_expected = 'LINK ?= $(abspath distlink) $(abspath clang++)'
33 test.must_contain('Makefile', cc_expected) 33 test.must_contain('Makefile', cc_expected)
34 test.must_contain('Makefile', link_expected) 34 test.must_contain('Makefile', link_expected)
35 if test.format == 'ninja': 35 if test.format == 'ninja':
36 cc_expected = ('cc = ' + os.path.join('..', '..', 'distcc') + ' ' + 36 cc_expected = ('cc = ' + os.path.join('..', '..', 'distcc') + ' ' +
37 os.path.join('..', '..', 'clang')) 37 os.path.join('..', '..', 'clang'))
38 cc_host_expected = ('cc_host = ' + os.path.join('..', '..', 'ccache') + ' ' + 38 cc_host_expected = ('cc_host = ' + os.path.join('..', '..', 'ccache') + ' ' +
39 os.path.join('..', '..', 'clang')) 39 os.path.join('..', '..', 'clang'))
40 ld_expected = 'ld = ../../distlink $cxx' 40 ld_expected = 'ld = ../../distlink $cc'
41 if sys.platform == 'win32': 41 if sys.platform == 'win32':
42 ld_expected = 'link.exe' 42 ld_expected = 'link.exe'
43 test.must_contain('out/Default/build.ninja', cc_expected) 43 test.must_contain('out/Default/build.ninja', cc_expected)
44 test.must_contain('out/Default/build.ninja', cc_host_expected) 44 test.must_contain('out/Default/build.ninja', cc_host_expected)
45 test.must_contain('out/Default/build.ninja', ld_expected) 45 test.must_contain('out/Default/build.ninja', ld_expected)
46 46
47 test.pass_test() 47 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698