diff mbox series

[08/10] gn: upgrade to latest revision

Message ID 20261116111658.7745-9-jaipaul.cheernam@est.tech
State Accepted, archived
Commit 11acd84d42608ae8838506e2fbe27878b1429a33
Headers show
Series Upgrades on 16th November | expand

Commit Message

Jaipaul Cheernam Nov. 16, 2026, 11:16 a.m. UTC
Group missing generated input errors by target and improve error messages.
Fix infinite recursion in "gn refs --tree --all"
Factor out helpers for generated_file() variables
Delay the whole Ninja writer of delayed generated_file() targets
Add TODO to check transitive deps by default in gn check
Create a function to calculate relative labels.
Header check: wait for chunked work with std::latch
Add --with-transitive-deps to gn check
Report .gn errors instead of crashing
Accept multiple label patterns in gn check
Fix how the regeneration command writes gn's own paths
Do not backslash-escape non-ASCII UTF-8 bytes on POSIX
Improve performance of escape functions.
Improve performance of StringOutputBuffer.
Reimplement EscapeStringToStream with zero-copy.
Propagate should_generate to sub-configs
[infra] Roll mac_toolchain to latest version
Stop integration tests from running every ninja invocation.
Replace instances of o(string)stream with StringOutputBuffer.
Only disable check_includes_strict optimization for exempted includers
Make build/gen.py use hermetic clang.
Cherry-pick script that runs your changes to recipes in CI
Improve StringOutputBuffer to act more like an o(string)stream
Disable check_includes_strict optimizations when there are exceptions.
Refactor CheckIncludesStrictExceptions API
Replace std::endl with '\n'.
Refactor string_output_buffer to support "Reserve".
Add check_includes_strict_exceptions configuration to .gn
Stop forwarding private hard_deps on Rust targets
Make StringAtom use pointer equality and hashing
Fix "Ouput" typos
Add no_check_generated_targets .gn variable
Improve the suggestion heuristic for depending on targets.
Do not generate last_commit_position.h in debug builds.
Enable check_includes_strict by default.
Disable rust formatter on main branch.
Add include sorting configuration to .clang-format and reformat
Delayed generated_file() writes if they collect validations metadata
Stop forwarding private hard_deps on check_includes_strict targets
Add `collect_validations_metadata` boolean flag to generated_file() targets.
Add new experimental_collect_validations_metadata .gn variable
Move generated_file() writes to dedicated function.
Avoid canonicalization + string comparisons during metadata collection.
Use internal state struct for Target::GetMetadata().
Fix minor Scheduler data races.
rust: Don't make rlibs depend on non-Rust link inputs
gn edit: keep build files alive for warnings
Add instructions for agent to build GN and run code / tests
Write phony rules for harddeps
Support conditional sources for gn check.
Don't write order-only deps reachable through direct deps
When suggestions have a known includer target, don't complain that they don't
resolve to a single target.
rust_project_writer: Support aliased_deps in rust-project.json
Header check: validate includes before building diagnostics
Header check: defer unrestricted dependency walks
Header check: batch reachability and file checking tasks
Header check: select files from the existing file map
Add an allowlist for allow_circular_includes_from.
[gn] Use std::unordered_map for waiting_map_
[gn] Shard StringAtomSet to avoid lock contention
[gn] Use DCHECK in Target::info()
[gn] Make ResolvedTargetData stateless
[recipe] Enable THP for jemalloc build in GN recipe

- Since commit 00748cec0 [1], gen.py uses $LD for the final link.
  Set LD=$CXX in do_configure because OE's ld cannot handle the -Wl  flags in LDFLAGS.

[1] https://gn.googlesource.com/gn/+/00748cec029890841e9e550281955324eb84a266

Signed-off-by: Jaipaul Cheernam <jaipaul.cheernam@est.tech>
---
 meta/recipes-devtools/gn/gn_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/gn/gn_git.bb b/meta/recipes-devtools/gn/gn_git.bb
index 6e8626dc32..6011ff6f12 100644
--- a/meta/recipes-devtools/gn/gn_git.bb
+++ b/meta/recipes-devtools/gn/gn_git.bb
@@ -8,7 +8,7 @@  UPSTREAM_CHECK_COMMITS = "1"
 
 SRC_URI = "git://gn.googlesource.com/gn;protocol=https;branch=main \
 "
-SRCREV = "cfcd774b98f3433e18b722f9a7ff06119825b8eb"
+SRCREV = "311003f8ea3500f8ce87c43ff61aec6f4066dac2"
 PV = "0+git"
 
 BB_GIT_SHALLOW = ""
@@ -27,6 +27,7 @@  def gn_platform(variable, d):
 
 do_configure[cleandirs] += "${B}"
 do_configure() {
+    export LD="${CXX}"
     python3 ${S}/build/gen.py \
         --platform=${@gn_platform("TARGET_OS", d)} \
         --out-path=${B} \