Content-Length: 230853 | pFad | http://github.com/googleapis/google-cloud-cpp/issues/15070

A7 Reduce PDB size for storage_grpc feature · Issue #15070 · googleapis/google-cloud-cpp · GitHub
Skip to content

Reduce PDB size for storage_grpc feature #15070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cuiy0006 opened this issue Apr 9, 2025 · 1 comment
Open

Reduce PDB size for storage_grpc feature #15070

cuiy0006 opened this issue Apr 9, 2025 · 1 comment
Assignees
Labels
type: cleanup An internal cleanup or hygiene concern.

Comments

@cuiy0006
Copy link
Collaborator

cuiy0006 commented Apr 9, 2025

We got

LINK : fatal error LNK1201: error writing to program database 'C:\b\google\cloud\storage\benchmarks\storage_throughput_vs_cpu_benchmark.pdb'; check for insufficient disk space, invalid path, or insufficient privilege

when building core feature for storage_grpc in debug mode.

We cannot use larger runner because the cost is high.

We need to research any way to reduce the PDB size of storage_grpc debug build.

@cuiy0006 cuiy0006 added the type: cleanup An internal cleanup or hygiene concern. label Apr 9, 2025
@cuiy0006 cuiy0006 self-assigned this Apr 9, 2025
@cuiy0006
Copy link
Collaborator Author

cuiy0006 commented Apr 9, 2025

Some thoughts,

  1. Using specific linker flags can strip unnecessary information from the PDB.
target_link_options(your_target PRIVATE "/PDBSTRIPPED" "/PDBCOMPRESS")
  1. Ensure that debug information is not generated at the compilation stage if it's not needed.
target_compile_options(your_target PRIVATE "/Zi")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-cpp/issues/15070

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy