缺少`generate_shim_headers.py`导致无法链接系统库

作者: DeepChirp创建于 2026年9月10日更新于 2026年9月10日

当使用./build/linux/unbundle/replace_gn_files.py尝试链接系统库时,会出现中断错误。这是因为shim_headers.gni文件依赖于脚本//tools/generate_shim_headers/generate_shim_headers.py,但当前仓库中并不包含该脚本。通过从上游 Chromium 仓库下载该脚本并放置到对应目录后,就可以解决此问题。(参见该构建流程

内容来源: klzgrad/naiveproxy