[CherryPick:r2.4] Pass cc_opt_flags to host_copt.
This commit is contained in:
parent
863cb7a45d
commit
6a05d5c136
@ -539,6 +539,7 @@ def set_cc_opt_flags(environ_cp):
|
|||||||
question, default_cc_opt_flags)
|
question, default_cc_opt_flags)
|
||||||
for opt in cc_opt_flags.split():
|
for opt in cc_opt_flags.split():
|
||||||
write_to_bazelrc('build:opt --copt=%s' % opt)
|
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')
|
write_to_bazelrc('build:opt --define with_default_optimizations=true')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user