Merge pull request #46185 from tensorflow/mm-remove-march=native
Continue removing `-march=native`
This commit is contained in:
commit
df05368807
@ -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')
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user