- 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. OBS-URL: https://build.opensuse.org/request/show/1191223 OBS-URL: https://build.opensuse.org/package/show/network:chromium/gn?expand=0&rev=49
16 lines
448 B
Diff
16 lines
448 B
Diff
diff --git a/build/gen.py b/build/gen.py
|
|
index 6f3652ee..eface2bd 100755
|
|
--- a/build/gen.py
|
|
+++ b/build/gen.py
|
|
@@ -235,8 +235,8 @@ def is_gcc(cxx):
|
|
f'{cxx} -dM -E -',
|
|
shell=True,
|
|
stdin=subprocess.DEVNULL,
|
|
- text=True,
|
|
- capture_output=True)
|
|
+ stdout=subprocess.PIPE,
|
|
+ universal_newlines=True)
|
|
|
|
return ret.returncode == 0 and "#define __GNUC__" in ret.stdout and not "#define __clang__" in ret.stdout
|
|
|