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

Unified Diff: test/make_global_settings/ar/gyptest-make_global_settings_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | test/win/gyptest-crosscompile-ar.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/make_global_settings/ar/gyptest-make_global_settings_ar.py
diff --git a/test/make_global_settings/ar/gyptest-make_global_settings_ar.py b/test/make_global_settings/ar/gyptest-make_global_settings_ar.py
index b279a129d39dda8ac8f13026a7c9a2a7d0fbbe00..e6676de6bdd08690c9fa0134afcd902a0f73ae00 100644
--- a/test/make_global_settings/ar/gyptest-make_global_settings_ar.py
+++ b/test/make_global_settings/ar/gyptest-make_global_settings_ar.py
@@ -56,7 +56,10 @@ def verify_ar_host(test, ar=None, rel_path=False):
ar_expected = ar
# Resolve default values
if ar_expected is None:
- ar_expected = 'ar'
+ if sys.platform == 'win32':
+ ar_expected = 'lib.exe'
+ else:
+ ar_expected = 'ar'
if test.format == 'make':
test.must_contain('Makefile', 'AR.host ?= %s' % ar_expected)
elif test.format in ['ninja', 'xcode-ninja']:
« no previous file with comments | « pylib/gyp/generator/ninja.py ('k') | test/win/gyptest-crosscompile-ar.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698