From ec19c4677e59d0bf1f31535cd33fc05a3b744573 Mon Sep 17 00:00:00 2001 From: Michael Case Date: Tue, 20 Feb 2018 20:45:33 -0800 Subject: Do not add --host_copt=-march=native on Power PC. (#17161) --- configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3