mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
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
This commit is contained in:
committed by
TensorFlower Gardener
parent
3427a3c638
commit
ec451f5ab4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user