From 864e6a0deaae799015fbb066a965ef5fd66cecc5 Mon Sep 17 00:00:00 2001 From: Stanislav Baranov Date: Fri, 10 Aug 2018 09:01:00 -0700 Subject: [PATCH] Ensure that 'gn --debug' and 'gn --debug --dynamic' are identical. --- tools/gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/gn b/tools/gn index 94dcdcf4ced73..421a4862b875a 100755 --- a/tools/gn +++ b/tools/gn @@ -16,7 +16,8 @@ def get_out_dir(args): else: target_dir = ['host'] - if args.dynamic: + runtime_mode = args.runtime_mode + if args.dynamic and runtime_mode in ['profile', 'release']: target_dir.append('dynamic') target_dir.append(args.runtime_mode)