aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure.py
diff options
context:
space:
mode:
authorGravatar Michael Case <mikecase@google.com>2018-02-20 20:45:33 -0800
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-02-20 20:45:33 -0800
commitec19c4677e59d0bf1f31535cd33fc05a3b744573 (patch)
tree111c4df886a91e8608206fdde048d65f6b0515a2 /configure.py
parentf0a965f268c0527704469d9c9a68acb9a1647afa (diff)
Do not add --host_copt=-march=native on Power PC. (#17161)
Diffstat (limited to 'configure.py')
-rw-r--r--configure.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py
index 2f268ee9d8..60f144f315 100644
--- a/configure.py
+++ b/configure.py
@@ -502,7 +502,8 @@ def set_cc_opt_flags(environ_cp):
for opt in cc_opt_flags.split():
write_to_bazelrc('build:opt --copt=%s' % opt)
# It should be safe on the same build host.
- write_to_bazelrc('build:opt --host_copt=-march=native')
+ if not is_ppc64le():
+ write_to_bazelrc('build:opt --host_copt=-march=native')
write_to_bazelrc('build:opt --define with_default_optimizations=true')
# TODO(mikecase): Remove these default defines once we are able to get
# TF Lite targets building without them.