* 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 OBS-URL: https://build.opensuse.org/package/show/network:chromium/gn?expand=0&rev=53
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
|
|
|