首页 > 解决方案 > //v8/BUILD.gn:503:30 处的电子构建错误:未定义的标识符

问题描述

我正在尝试使用命令构建电子源 -

gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")"

不断收到此错误 -

ERROR at //v8/BUILD.gn:503:30: Undefined identifier
if (!is_component_build && is_electron_build) {
                           ^----------------
See //BUILD.gn:219:7: which caused the file to be included.
  "//v8:gn_all",
  ^------------

我无法弄清楚我错过了什么。我再次检查,所有的说明和要求,都很好。看起来它指向is_electron_build. 我不知道这是从哪里来的。

我正在关注这个https://www.electronjs.org/docs/development/build-instructions-gn

标签: electronchromiumgn

解决方案


推荐阅读