From 2fc198c2fc3f89635523c14cfe35e5168c87a23f Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Tue, 5 Jan 2021 12:27:35 -0800 Subject: [PATCH] Continue removing `-march=native` --- configure.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 29f16961e01..c504ccd2229 100644 --- a/configure.py +++ b/configure.py @@ -535,8 +535,9 @@ 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. - if not is_ppc64le() and not is_windows(): - write_to_bazelrc('build:opt --host_copt=-march=native') + # TODO(mihaimaruseac): we removed `-march=native` above + #if not is_ppc64le() and not is_windows(): + # write_to_bazelrc('build:opt --host_copt=-march=native') write_to_bazelrc('build:opt --define with_default_optimizations=true')