message: [CherryPick:r2.4] Pass cc_opt_flags to host_copt.
diff: @@ -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')
  