Merge pull request #46542 from tensorflow/cp_351470659
[CherryPick:r2.4] Pass cc_opt_flags to host_copt.
This commit is contained in:
commit
5c849f2550
@ -539,6 +539,7 @@ def set_cc_opt_flags(environ_cp):
|
||||
question, default_cc_opt_flags)
|
||||
for opt in cc_opt_flags.split():
|
||||
write_to_bazelrc('build:opt --copt=%s' % opt)
|
||||
write_to_bazelrc('build:opt --host_copt=%s' % opt)
|
||||
write_to_bazelrc('build:opt --define with_default_optimizations=true')
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user