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

Remove `-march=native`. Testing for #45744, #45866, #44701
This commit is contained in:
Mihai Maruseac 2021-01-05 12:09:49 -08:00 committed by GitHub
commit 83cbe8fb4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -526,7 +526,7 @@ def set_cc_opt_flags(environ_cp):
elif is_windows():
default_cc_opt_flags = '/arch:AVX'
else:
default_cc_opt_flags = '-march=native -Wno-sign-compare'
default_cc_opt_flags = '-Wno-sign-compare' # TODO(mihaimaruseac): Was '-march=native -Wno-sign-compare'
question = ('Please specify optimization flags to use during compilation when'
' bazel option "--config=opt" is specified [Default is %s]: '
) % default_cc_opt_flags