commit | 8f2193f707932c23a2ff9bc9d9618c0f83887e89 | [log] [tgz] |
---|---|---|
author | Keren Zhu <[email protected]> | Fri Aug 02 22:17:24 2024 +0000 |
committer | GN LUCI <[email protected]> | Mon Aug 05 02:43:02 2024 +0000 |
tree | 2fb3975a8b70fee8ef331f615a00fc7e1ba7242d | |
parent | 0ee833e823f2e11be136728169906d0710bee910 [diff] |
hint using nogncheck on disallowed includes Change-Id: Ibdea79d52f110b89aac7b441f509509d7a8124bf Reviewed-on: https://gn-review.googlesource.com/c/gn/+/17440 Reviewed-by: Dirk Pranke <[email protected]> Commit-Queue: Takuto Ikuta <[email protected]> Reviewed-by: Takuto Ikuta <[email protected]>
diff --git a/src/gn/header_checker.cc b/src/gn/header_checker.cc index 197084b..0abf71a 100644 --- a/src/gn/header_checker.cc +++ b/src/gn/header_checker.cc
@@ -653,7 +653,9 @@ targets_with_matching_toolchains.size() > 1) msg += "at least one of "; - msg += "which should somehow be reachable."; + msg += "which should somehow be reachable.\n"; + msg += "This might be a false alarm if you are using conditional include. " + "See \"gn help nogncheck\"."; // Danger: must call CreatePersistentRange to put in Err. return Err(CreatePersistentRange(source_file, range), "Include not allowed.",