diff options
author | Yifei Feng <yifeif@google.com> | 2018-10-05 12:53:50 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-10-05 13:03:15 -0700 |
commit | ec451f5ab43467d7cb4ae7736f2de16331441e0b (patch) | |
tree | b2ef861551869c6934e9cccf52bd7afaefd50d36 /configure.py | |
parent | 3427a3c638fb92a172d390266ed62403f9140f7d (diff) |
Break up build --define <option_name>=true into two steps:
1) define bazel config
build:<bazel_config_name> --define <option_name>s=true
2) set the config
build --config=<bazel_config_name>
PiperOrigin-RevId: 215951614
Diffstat (limited to 'configure.py')
-rw-r--r-- | configure.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.py b/configure.py index 65b4622995..89dc79b6b6 100644 --- a/configure.py +++ b/configure.py @@ -383,7 +383,9 @@ def set_build_var(environ_cp, var = str(int(get_var(environ_cp, var_name, query_item, enabled_by_default))) environ_cp[var_name] = var if var == '1': - write_to_bazelrc('build --define %s=true' % option_name) + write_to_bazelrc( + 'build:%s --define %s=true' % (bazel_config_name, option_name)) + write_to_bazelrc('build --config=%s' % bazel_config_name) elif bazel_config_name is not None: # TODO(mikecase): Migrate all users of configure.py to use --config Bazel # options and not to set build configs through environment variables. |