mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Addresses review feedback from @deepak1556: the hardcoded `out\Default\thinlto-cache` path goes out of sync if upstream changes `cache_dir` in Chromium's build/config/compiler/BUILD.gn. Read the `/lldltocache:` flag from `gn desc` on a linked target (`//electron:electron_app`) and pre-create whatever path GN actually configured. Skips the pre-create entirely when ThinLTO is disabled (non-official builds), which is the correct no-op.