aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.py
diff options
context:
space:
mode:
authorGravatar Michael Case <mikecase@google.com>2017-11-09 08:46:31 -0800
committerGravatar Andrew Selle <aselle@andyselle.com>2017-11-10 16:14:38 -0800
commitbb3355d49fae143159837e125700e48781496c6a (patch)
tree8bc696ea3128e23e135ddfa34da78ebb763672e9 /configure.py
parent67289c65bd8ba779d37e92a9aefac80c6cd8c27b (diff)
Internal Change.
PiperOrigin-RevId: 175163107
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.py b/configure.py
index 650541770a..e98367ef9f 100644
--- a/configure.py
+++ b/configure.py
@@ -487,10 +487,11 @@ def set_cc_opt_flags(environ_cp):
cc_opt_flags = get_from_env_or_user_or_default(environ_cp, 'CC_OPT_FLAGS',
question, default_cc_opt_flags)
for opt in cc_opt_flags.split():
- host_opt = '-march=native' # It should be safe on the same build host.
- write_to_bazelrc(
- 'build:opt --cxxopt=%s --copt=%s' % (opt, opt) +
- ' --host_cxxopt=%s --host_copt=%s' % (host_opt, host_opt))
+ write_to_bazelrc('build:opt --cxxopt=%s --copt=%s' % (opt, opt))
+ host_opt = '-march=native' # It should be safe on the same build host.
+ write_to_bazelrc(
+ 'build:opt --host_cxxopt=%s --host_copt=%s' % (host_opt, host_opt))
+ write_to_bazelrc('build:opt --define with_default_optimizations=true')
def set_tf_cuda_clang(environ_cp):