From 5288dc5414b422c5ba26c26ce4af9f932b0249db Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Thu, 25 Aug 2016 16:01:01 +0300 Subject: [PATCH] Fix DEPOT_TOOLS_WIN_TOOLCHAIN value check (issue #1403) --- tools/gn_args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gn_args.py b/tools/gn_args.py index ba2eee610..a3c05c9a7 100644 --- a/tools/gn_args.py +++ b/tools/gn_args.py @@ -257,7 +257,7 @@ def ValidateArgs(args): # be derived from there and the specified INCLUDE/LIB/PATH values, if any, # will be ignored by Chromium. If this file does not exist then the # INCLUDE/LIB/PATH values are also required by Chromium. - assert bool(int(os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', 0))), \ + assert os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN', '') == '0', \ "visual_studio_path requires DEPOT_TOOLS_WIN_TOOLCHAIN=0 env variable" msvs_path = os.environ.get('GYP_MSVS_OVERRIDE_PATH', '') assert msvs_path == visual_studio_path and os.path.exists(msvs_path), \