| AArch64 | |
| ppc64le | |
| s390x | |
| x86-64 |
- Update to version 0.20260907: * Use ReachabilityCache to improve performance of loop detection * Support `target(target_type, name)` in `gn edit` * Cache reverse dependencies for dependency exposure. * Skip attempting to resolve known files as module names. * Cache file path -> target lookup in `gn suggest`. * Make `gn edit move` idempotent. * When re-running build/gen.py from ninja, preserve environment variables. * Implement pretty for several more types * Ensure `gn edit` follows the style guide for variable ordering. * Simplify code produced by gn edit. * Support setting expressions in `gn edit` * Revert "Write to ninja files via a standard API" * Write to ninja files via a standard API * Use move instead of add where suitable when suggesting fixes. * Fix EditCommandTest.ShardSubcommand * Support public_inputs in gn desc * Update `gn format` to always insert newlines before targets. * run_formatter.sh: Warn if `rustfmt` is not installed. * docs: Document that copy() uses the toolchain's copy tool * standard_out.h: Add ScopedBufferedOuptut class. * Support public_inputs in group targets * Run benchmarks serially. * Write benchmarks to out/before and out/after instead of out/ * Add jj subcommands to easily compare revisions. * Add `build/gen.py --gen ~/chromium/src=out/Default` * Create a trace comparison tool to evaluate the performance impact of a change. * Allow host_os and host_cpu to be accessed in .gn files * Implement `gn edit "shard"` subcommand * Hint about --fix/--apply when running without them * Add support for creating new targets in `gn edit` * Support cloning of nodes in the AST. * Mark NOTREACHED as [[noreturn]] * Implement `gn check --fix` * Fix gn suggest adding self-dependency loops. * Add a `gn suggest --apply` option. * Add `gn edit` suggestions to `gn suggest` * Implement `gn edit "rename attr attr"` * Implement `gn edit "move attr attr value(s)"` * Implement `gn edit "add attribute value(s)"` * Implement `gn edit "remove attr value(s)"` * Refactor parse nodes to support non-const access. * Implement `gn edit delete` and `gn edit remove attr` * Implement `gn edit` command, and implement a simple subcommand "set" * Add features to test framework * Implement a Result<T> type. * Fix formatter on main branch * Fix path to build/gen.py. * Add pre-upload checks into ninja targets * Add --exclude-type command-line argument * Add CQ to starlark branch * Refactor main.star to support multiple branches. * Implement rule implementation execution. * Create a simple session type and create a test for it. * Fix lifetime of starlark struct keys passed to C++. * Rename .bzl to .scl in accordance with design doc guidance. * Split into two kinds of scopes - scopes and structs.
- Update to version 0.20260730: * Allow too many arguments lint. * Fix starlark linker errors for clean builds * Fix occasional crashes when running cargo ffi tests in parallel. * Remove several unsafes from the FFI bridge code. * Support converting starlark::Error to gn's Err type. * Support source-relative paths for script_executable * Fix UB in ffi scope function. * Clarify "it" in error messages. * Support builtin provider types. * Add --starlark to build/gen.py. * Add label and toolchain method to TargetRef trait. * Run tools/run_formatter.sh * Implement check_includes_strict parameter * Add option to supply multiple comma-separated types in --type * Add support for remaining target types in gn --type * Create starlark rule crate * Simplify provider types to require freezing at the compiler level. * Make EvalContext have interior mutability. * Rework API to create targets. * Fix lint errors * Add support for creating ctx.attr/files/file * Allow testonly validations on non-testonly targets * Fix and improve metadata collection help documentation * Add detailed failure messages to command_format_unittest * Fix failing lint errors * Run formatter. * Create starlark providers crate * Create starlark args crate * Refactor depset and testutils to do a few things: * Implement GnValue FFI and starlark/rust conversions * Enable build and usage on Sparc64 * Replace OutputFile with StringAtom under the hood * Remove all mutations of OutputFile objects. * Create starlark depset crate * Create starlark loader crate * Support converting attr to starlark values * Refactor filesystem utils to clean up the code and avoid OutputFile mutation * Keep cxx.h up to date * Fix command_format_unittest.cc out-of-tree builds. * Fix update_reference.sh to work with a custom output directory. * Update CI recipe to build using out/Default output directory. * Fix integration tests to work with a custom build/gen.py --out-path * Fix issues where cargo wouldn't rerun after static libraries were updated. * Implement clang-format-ignore instead of manually using grep. * Fix missing public_inputs in the action's own inputs dependency * Add public_inputs variable to action targets and propagate dependencies * Switch FFI method to cxxbridge, and add tests to ffi crate. * Create starlark testutils crate * Create starlark attr crate * Make PackageRef validate package names. * Add cole to owners, as the rust expert who will likely be giving the +2 * Add linting tools to GN and fix lint errors. * [rust-project] Support space-separated --cfg arguments * Implement ffi for OutputFile type. * Implement ffi for settings type. * Refactor label conversion to handle source dirs that aren't labels as well. * Fix jj formatter. * Add formatter configuration for jj. * Create rust formatter configuration and apply it. * Reland "Propagate public_deps outputs via dependency_output for non-binary targets" * Fix a compile error in label.rs * Add linting instructions to AGENTS.md * Create a simple FFI crate * Create starlark types crate. * Revert "Propagate public_deps outputs via dependency_output for non-binary targets" * Propagate public_deps outputs via dependency_output for non-binary targets * Create an `intern_string` function accessible to rust * Parallelize per-target JSON rendering in --ide=json * Share ResolvedTargetData across targets in --ide=json * Make Ninja output deterministic across GN binary builds * Vendor only cxx.h * Add an agents.md providing instructions on writing code. * Create an empty cargo project for starlark suppoprt. * Change resolution algorithm to reduce edge walks * Use BuilderRecord::waiting_map_ * ninja_rust_binary_target_writer: link C++-reachable transitive rlibs * Add integration test support to GN. * Prevent CI breakages by running integration tests. * Fix the failing windows builder by adding a .exe suffix * Rerun `python3 infra/recipes.py test train` * Specifically only compile code in the build step. * Update GN to require a minimum of python 3.9 * Revert "Run builds and tests quietly in CI" * Make toolchain.ninja deterministic order. * Run builds and tests quietly in CI * Improve pointer stability of OutputFile objects. * Add --quiet to gn_unittests * Run formatter * Prefer implicit std::string type conversion in rust_project_writer.cc for string literals * Support `--target=<value>` in addition to `--target <value>` * Formatting only changes - use python3.11 to build on 15.x
- Update to version 0.20260605: * Introduce --format-width option (and format_width .gn variable). * Resolve suggest inputs relative to target include directories. * Consider target outputs as existing files in `gn suggest`. * Reland "Fix toolchain dependencies not triggering rebuilds in Ninja" * Fix build with GCC 16 on musl by adding missing <cstdint> * Add module_deps[_no_self] to the default test toolchain * Implement cycle detection and circular dependency handling in `gn suggest`. * Reduce ResolvedTargetData lock contention by sharding targets map * Implement visibility checks in `gn suggest`. * Refactor `OutputSuggestions` to make it testable. * Format with c++23 standard * Enhance quiet mode. * Fix pretty printing of string literals. * Fix PointerSet and BuilderRecordMap iterators under C++23 * Don't print the request when there's only one. * Bypass group targets for order-only deps in source set stamp files * Fix complete_static_lib to include Rust libraries. * Exports group's target "data" property * Optimize OrderOnlyDeps computation using ResolvedTargetData caching * Format gn src with run_formatter.sh * gn format: 80-character comment wrapping and reflowing improvements * Build with C++23 * Revert "Fix toolchain dependencies not triggering rebuilds in Ninja" * Roll windows toolchain * Fix C++23 compilation errors * Fix toolchain dependencies not triggering rebuilds in Ninja * [gn] Bypass groups in order-only deps to use source set linkdeps * Update reference.md
- Update to version 0.20260429: * Run update reference in CI * Add `gn suggest` subcommand. * Update documentation * [apple] Optimise enumeration of additional files for Xcode project * [gn] Split SOURCE_SET phony targets to exclude additional outputs from linking * Run formatter in CI * Rework update_reference.sh to run correctly in CI. * IWYU: gn/target.h * Revert "Run formatter and update reference in CI" * Revert "Fix: Ensure only actual object files are included in link inputs" * Run formatter and update reference in CI * Add --diff to run_formatter and update_reference * Fix: Ensure only actual object files are included in link inputs * Run `infra/recipes.py test train`. * Improve EXPECT_EQ diff printing * Simplify success expectations in GN. * Add support for c_additional_outputs in config * Add diffs to EXPECT_EQ. * Advertise QtCreator v20+ built-in GN support * Rename impl:$MODULE to $MODULE_Private. * Only output -fmodule-map-file for the root generated modulemap. * Add function `expand_directory` to gn. * Refactor ModuleType from an enum to a bitset. * Generate two modulemaps per target. * Put dependencies in modulemaps * Run formatter * Include your own modulemap files in module_deps_no_self. * Change default module name in GN to be the full label.
- added patches: gn-multiline-comment.patch (change multiline comment so that line continuation character is not at the end of the line)
- Update to version 0.20260331: * Add modulemap generation to GN. * Support building gn without a .git directory. * Limit the maximum number of GN worker threads to 32. * Remove premature target writing before validation during `gn gen`. * Only run target checks in background threads during resolution. * Add additional files to gitignore * Add `inputs` parameter to `tool`. * Unit test foo* not just *foo patterns * Unit test edge cases around consecutive \b in patterns * Reject newlines in string config values (defines, cflags, etc.) * Set clang-format to use C++20 * Run formatter * Bump min mac version flag. * Add --error-limit flag to control error output count * [gn] Fix Value::operator== for empty lists * [gn] Optimize Value::LIST with Copy-On-Write using nullptr * Capture C++ modules compilation commands in compile_commands.json * Output -fmodule-map-file as well as -fmodule-file for module dependencies. * Optimize HeaderChecker by parallelizing ReachabilityCache pre-calculation and removing lock contention. * Optimize HeaderChecker file I/O by parsing files only once * Optimize reachability cache to drastically reduce BFS executions * Remove unused targets_count_ in HeaderChecker * Apply clang-format * Use high-performance cores on Apple Silicon for worker pool * Optimize HeaderChecker::IsDependencyOf using HashTableBase * [perf] Optimize HeaderChecker BFS using reserve() * [perf] Share ResolvedTargetData across worker threads * [perf] Cache dependency checks in HeaderChecker * [test] Fix SetupTest.AbsolutePythonPathInsideRootDir on macOS * [mac] Update minimum macOS version to 10.12 * Include validations when collecting metadata * Fix target being written twice under certain circumstances * Add validation support to gn analyze/desc/path/refs * Fix race condition when using validations * Add pcm files to the deps of phony target * Add `validations` dependency type to targets * Fix result of Scheduler::Run() with empty work queue * Add conductor setup files * Improve writing runtime deps * Unit test label user visible name * Improve error message for rebase_path builtin * Minor table-driven test refactor * win: Use relative path for python in ninja files if possible
- Update to version 0.20251217: * Fix sha2 on big endian * [Windows] Reduce the number of worker threads on many-core machines * Add a sha256 hash implementation and use it for string_hash * Opt-in to the Windows SegmentHeap * Add a `module_name` flag to source_set. * Refactor module name to be dynamic. * Optimize vector creation in compile_commands_writer.cc. * Run 'tools/run_formatter.sh' * Implement `string_hash` function. * Support weak_libraries * Do not add .inputdeps paths to --ninja-outputs-file * Make clang modules output -fmodule-file=foo=<pcm>. * infra: Revert CIPD autoconf * infra: Include autoconf bin directory to PATH * infra: Fix autoconf executable path * infra: Use CIPD autoconf * Allow led access in GN via http://go/ciba * Revert "Build non-linkable deps async with Ninja's validaitons" * Upgrade linux bots from ubuntu 22.04 to ubuntu 24.04 * Use unordered_map instead of map in HeaderChecker * Add --file_relation to gn refs command * Optimize vector initialization and preallocation in desc_builder.cc. * Add `reserve` statement when vector size is known beforehand. * Refactor container update by preferring the range insert. * Handle symlinked directories correctly during gn clean on Windows. * Fix relative imports from args.gn.
- Update to version 0.20250918: * update reference.md * Include -fmodule-file flags in compile_commands.json * Refactor C++ module dependency logic into a new utility * Gitiles navigation bar * Adds a len() function * Avoid clashes of include_dir in rust-project.json. * Check all targets to find duplicated outputs. * infra/config: Remove luci.recipes.use_python3 experiment * Handle empty outputs in WriteInputDepsStampOrPhonyAndGetDep * build: Propagate module dependencies through group targets * Deduplicate item in 'deps', 'sources' and related lists * infra: Update comment for macOS version used in CQ/CI * [Apple] Allow passing a manifest to the post-processing script * Update link to buganizer in README.md * [Apple] Fix `gn gen` when using swift and no_stamp_files * [Apple] Remove deprecated aliases for `post_processing_$var` * Revert "Allow newline in string literal" * Use std::ranges::all_of in parse_tree_unittest * infra: Correctly use macOS 13 instead of 11 * Update Xcode and macOS version in bots * infra: Add shadow buckets to trigger led job * Allow newline in string literal * Revert "Update macOS version to 13 used in CQ/CI" * Update macOS version to 13 used in CQ/CI * Refactor command_format.cc * Shorten targets from //path/to/foo:foo to //path/to/foo * Modernize and improve parse_tree.cc * Auto-format the codebase * Remove hardcoded -fmodules-embed-all-files flag * Reland "Use JSON escaping for JSON string output"
- Update to version 0.20250619: * Reland #2 "Run Target::OnResolve() on background threads" * Propagate module dependencies transitively via public_deps * Fix bug in Grow logic in HashTableBase * Apply tools/run_formatter.sh * Revert "Reland "Run Target::OnResolve() on background threads"" * Reland "Run Target::OnResolve() on background threads" * Enable ASAN & UBSAN when running tests in debug on CQ/CI * Revert "Run Target::OnResolve() on background threads" * Check all targets before generating shortnames * [tvos] Search for `kTargetXcodePlatform` from all arguments * Run Target::OnResolve() on background threads * specify the gerrit listener type to be legacy poller * Optimize Target::EnsureFileIsGeneratedByDependency() * Fix lsan errors * Add myself to OWNERS, remove xoolger addresses * Revert "Use JSON escaping for JSON string output" * Use JSON escaping for JSON string output * [tvos] Handle a type error with target_xcode_platform * [tvos] Add target_xcode_platform to set Xcode project * Add `--filter-with-data` flag for `gn gen --ide=json` * Handle --ide=vs2019 switch * Handle hpp11 file extension. * Fix `gn help --root-pattern` * Build non-linkable deps async with Ninja's validaitons * Generate compile_commands.json as part of build/gen.py * apply the latest clang-format * Add a test for source_set with modulemap * Write .gitignore file to build directory * Add more on how args are processed to "help execution". * Make `gn_version` available in the dotfile. * Tweak `help execution` wording after c0a46c5. * Attempt to improve the documentation for "help execution". * zos: build with -m64 and ignore unknown-pragmas * Unit test parser/tokenizer against double minus
- Update to version 0.20250520: * Add `--filter-with-data` flag for `gn gen --ide=json` * Handle --ide=vs2019 switch * Handle hpp11 file extension. * Fix `gn help --root-pattern` * Build non-linkable deps async with Ninja's validaitons * Generate compile_commands.json as part of build/gen.py * apply the latest clang-format * Add a test for source_set with modulemap * Write .gitignore file to build directory * Add more on how args are processed to "help execution". * Make `gn_version` available in the dotfile. * Tweak `help execution` wording after c0a46c5. * Attempt to improve the documentation for "help execution". * zos: build with -m64 and ignore unknown-pragmas * Unit test parser/tokenizer against double minus
- Update to version 0.20250306:
* Remove deps from rust executable to module's pcm files
* Update test for rust executable deps
* Add toolchain for cxx modules in TestWithScope
* Apply the latest clang-format
* Update reference for {rustdeps}
* Always generate a .toolchain file even if it is empty.
* Pass --with-lg-page=16 when building jemalloc for arm64.
* Remove obsolete debug checks.
* Make default vs ide version on Windows as 2022
* Reland "Adds a path_exists() function"
* Revert "Adds a path_exists() function"
* Adds a path_exists() function
* Revert "Speed-up GN with custom OutputStream interface."
* Speed-up GN with custom OutputStream interface.
* Add `exec_script_allowlist` to replace `exec_script_whitelist`.
* Retry ReplaceFile in case of failure
* Fix crash when NinjaBuildWriter::RunAndWriteFile fails
* fix include for escape.h
* fix exit code for gn gen failure
* misc: Use html.escape instead of cgi.escape
* Do not copy parent build_dependency_files_ in Scope constructors.
* Improve error message for duplicated items
* [rust-project] Always use forward slashes in sysroot paths
* Update all_dependent_configs docs.
* set 'no_stamp_files' by default
* fix a typo
* Stop using transitional LFS64 APIs
* do not use tool prefix for phony rule
* [rust] Add sysroot_src to rust-project.json
* Implement and enable 'no_stamp_files'
* Add Target::dependency_output_alias()
* Add "outputs" to generated_file documentation.
* Update bug database link.
* remove a trailing space after variable bindings
* fix tool name in error
* remove unused includes
* Markdown optimization (follow-up)
* Support link_output, depend_output in Rust linked tools.
* Properly verify runtime_outputs in rust tool definitions.
* BugFix: Syntax error in gen.py file
* generated_file: add output to input deps of stamp
* Markdown optimization:
* Revert "Rust: link_output, depend_output and runtime_outputs for dylibs"
* hint using nogncheck on disallowed includes
- add "-Wno-unused-value" to fix build on armv6/armv7
- Update to version 0.20240730:
* Rust: link_output, depend_output and runtime_outputs for dylibs
* Add missing reference section to function_toolchain.cc
* Do not cleanup args.gn imports located in the output directory.
* Fix expectations in NinjaRustBinaryTargetWriterTest.SwiftModule
* Do not add native dependencies to the library search path
* Support linking frameworks and swiftmodules in Rust targets
* [desc] Silence print() statements when outputing json
* infra: Move CI/try builds to Ubuntu-22.04
* [MinGW] Fix mingw building issues
* [gn] Fix "link" in the //examples/simple_build/build/toolchain/BUILD.gn
* [template] Fix "rule alink_thin" in the //build/build_linux.ninja.template
* Allow multiple --ide switches
* [src] Add "#include <limits>" in the //src/base/files/file_enumerator_win.cc
* Get updates to infra/recipes.py from upstream
* Revert "Teach gn to handle systems with > 64 processors"
* [apple] Rename the code-signing properties of create_bundle
* Fix a typo in "gn help refs" output
* Revert "[bundle] Use "phony" builtin tool for create_bundle targets"
* [bundle] Use "phony" builtin tool for create_bundle targets
* [ios] Simplify handling of assets catalog
* [swift] List all outputs as deps of "source_set" stamp file
* [swift] Update `gn check ...` to consider the generated header
* [swift] Set `restat = 1` to swift build rules
* Fix build with gcc12
* [label_matches] Add new functions label_matches(), filter_labels_include() and filter_labels_exclude()
* [swift] Remove problematic use of "stamp" tool
* Implement new --ninja-outputs-file option.
* Add NinjaOutputsWriter class
* Move InvokePython() function to its own source file.
* zos: build with -DZOSLIB_OVERRIDE_CLIB to override creat
* Enable C++ runtime assertions in debug mode.
* Fix regression in MakeRelativePath()
* fix: Fix Windows MakeRelativePath.
* Add long path support for windows
* Ensure read_file() files are considered by "gn analyze"
* apply 2to3 to for some Python scripts
* Add rustflags to desc and help output
* strings: support case insensitive check only in StartsWith/EndsWith
* add .git-blame-ignore-revs
* use std::{string,string_view}::{starts_with,ends_with}
* apply clang-format to all C++ sources
* add forward declaration in rust_values.h
* Add `root_patterns` list to build configuration.
* Use c++20 in GN build
* update windows sdk to 2024-01-11
* update windows sdk
* Add linux-riscv64.
* Update OWNERS list.
* remove unused function
* Ignore build warning -Werror=redundant-move
* Fix --as=buildfile `gn desc deps` output.
* Update recipe engine to 9dea1246.
* treewide: Fix spelling mistakes
- add subprocess-python36.patch
to build with python3.6 on sle15
- use gcc-13 instead of gcc-12
to work around maybe uninitialized error
- Use %patch -P N instead of deprecated %patchN.
- Update to version 0.20231023: * many updates to support Chromium 119 build - drop deprecated_copy.patch - add redundant-move.patch
- Bump Leap's GCC version to 12 to align with the other Chromium tools - Exclude ppc - it doesn't build
- Update to 0.1726: * no upstream changelog - Rebase patches: * gn-always-python3.patch * gn-flags.patch
- Update to 0.1616: * no upstream changelog - Remove merged patch gn-add_missing_arm_files.patch - Add patch to always use python3 in tests: * gn-always-python3.patch
- Update to 0.1544: * No upstream changelog - Rebase patch gn-flags.patch
- Version update to 0.1479: * No upstream changelog - Rebase patch gn-flags.patch
- Add deprecated_copy.patch: fix deprecated copy GCC warnings - Go back to GCC - Use newer libs and GCC on Leap 15.3 & 15.4
- Fix build with riscv64
- Update to version 0.20210811: * C++ modernization improvements. * Minor style updates. * Enable GN to build & run on z/OS * Fix a typo in the doc of "generated_file" * Update doc/help to say --ninja-executable works for VS Flags * [rust] Fix and test dylib support * Add 'rustenv' to 'gn desc' output * [rust] Clean up logic in PullDependentTargetLibsFrom * Link Rust binaries against transitive public_deps * Fix linking dynamic libraries in Rust binaries - Remove patches: * gn-flags.patch * gn-always-python3.patch * riscv.patch
- Add riscv.patch to add support for RISCV
- Update to 0.1807: * no upstream changelog
- Update to 0.1726: * no upstream changelog - Rebase patches: * gn-always-python3.patch * gn-flags.patch
- Update to 0.1616: * no upstream changelog - Remove merged patch gn-add_missing_arm_files.patch - Add patch to always use python3 in tests: * gn-always-python3.patch
- Update to 0.1544: * No upstream changelog - Rebase patch gn-flags.patch
- Add patch to add missing files to fix armv7 build: * gn-add_missing_arm_files.patch
- Version update to 0.1479: * No upstream changelog - Rebase patch gn-flags.patch
- Update to 0.1463: * No upstream changelog - Rebase patch gn-flags.patch
- Fix building on openSUSE Leap 42.3
- Initial commit, package used to generate ninja files, used when configuring chromium