parameters: (cfg, benchmarks, dest_dir)
docstring: Build given config and copy resulting binaries to dest_dir/CONFIG
docstring_summary: Build given config and copy resulting binaries to dest_dir/CONFIG
docstring_tokens: Build given config and copy resulting binaries to dest_dir / CONFIG
function: def _build_config_and_copy(cfg, benchmarks, dest_dir):
      """Build given config and copy resulting binaries to dest_dir/CONFIG"""
      subprocess.check_call(_build_cmd(cfg, benchmarks))
      cfg_dir = dest_dir + '/%s' % cfg
      os.makedirs(cfg_dir)
      subprocess.check_call(['cp'] + [
          'bazel-bin/test/cpp/microbenchmarks/%s' % benchmark
          for benchmark in benchmarks
      ] + [cfg_dir])
function_tokens: def _build_config_and_copy ( cfg , benchmarks , dest_dir ) : subprocess . check_call ( _build_cmd ( cfg , benchmarks ) ) cfg_dir = dest_dir + '/%s' % cfg os . makedirs ( cfg_dir ) subprocess . check_call ( [ 'cp' ] + [ 'bazel-bin/test/cpp/microbenchmarks/%s' % benchmark for benchmark in benchmarks ] + [ cfg_dir ] )