Merge pull request #46185 from tensorflow/mm-remove-march=native

Continue removing `-march=native`
This commit is contained in:
Mihai Maruseac 2021-01-05 12:28:48 -08:00 committed by GitHub
commit df05368807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')