Do not add --host_copt=-march=native on Power PC. (#17161)
diff --git a/configure.py b/configure.py
index 2f268ee..60f144f 100644
--- a/configure.py
+++ b/configure.py
@@ -502,7 +502,8 @@
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.