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

Side by Side Diff: test/win/gyptest-crosscompile-ar.py

Issue 1484333002: Derive default for ar_host from ar. (Closed) Base URL: https://chromium.googlesource.com/external/gyp.git@master
Patch Set: Fix existing test Created 5 years 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
OLDNEW
(Empty)
1 #!/usr/bin/env python
2
3 # Copyright (c) 2015 The Chromium 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 """
8 Verifies that ar_host is set correctly when enabling cross-compile on windows.
9 """
10
11 import TestGyp
12
13 import sys
14 import os
15
16 if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['ninja'])
18
19 CHDIR = 'lib-crosscompile'
20 oldenv = os.environ.copy()
21 try:
22 os.environ['GYP_CROSSCOMPILE'] = '1'
23 test.run_gyp('use_host_ar.gyp', chdir=CHDIR)
24 finally:
25 os.environ.clear()
26 os.environ.update(oldenv)
27
28 test.build('use_host_ar.gyp', test.ALL, chdir=CHDIR)
29 test.pass_test()
OLDNEW
« no previous file with comments | « test/make_global_settings/ar/gyptest-make_global_settings_ar.py ('k') | test/win/lib-crosscompile/answer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698