Merge pull request #42194 from nh2/issue-42189-chromium-gn-warning-check
chromium: Abort build on gn warnings. Fixes #42189.
This commit is contained in:
commit
9b035d50ee
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
# package customization
|
# package customization
|
||||||
, enableNaCl ? false
|
, enableNaCl ? false
|
||||||
, enableHotwording ? false
|
|
||||||
, enableWideVine ? false
|
, enableWideVine ? false
|
||||||
, gnomeSupport ? false, gnome ? null
|
, gnomeSupport ? false, gnome ? null
|
||||||
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
, gnomeKeyringSupport ? false, libgnome-keyring3 ? null
|
||||||
@ -215,11 +214,8 @@ let
|
|||||||
proprietary_codecs = false;
|
proprietary_codecs = false;
|
||||||
use_sysroot = false;
|
use_sysroot = false;
|
||||||
use_gnome_keyring = gnomeKeyringSupport;
|
use_gnome_keyring = gnomeKeyringSupport;
|
||||||
## FIXME remove use_gconf after chromium 65 has become stable
|
|
||||||
use_gconf = gnomeSupport;
|
|
||||||
use_gio = gnomeSupport;
|
use_gio = gnomeSupport;
|
||||||
enable_nacl = enableNaCl;
|
enable_nacl = enableNaCl;
|
||||||
enable_hotwording = enableHotwording;
|
|
||||||
enable_widevine = enableWideVine;
|
enable_widevine = enableWideVine;
|
||||||
use_cups = cupsSupport;
|
use_cups = cupsSupport;
|
||||||
|
|
||||||
@ -259,7 +255,10 @@ let
|
|||||||
libExecPath="${libExecPath}"
|
libExecPath="${libExecPath}"
|
||||||
python build/linux/unbundle/replace_gn_files.py \
|
python build/linux/unbundle/replace_gn_files.py \
|
||||||
--system-libraries ${toString gnSystemLibraries}
|
--system-libraries ${toString gnSystemLibraries}
|
||||||
gn gen --args=${escapeShellArg gnFlags} out/Release
|
gn gen --args=${escapeShellArg gnFlags} out/Release | tee gn-gen-outputs.txt
|
||||||
|
|
||||||
|
# Fail if `gn gen` contains a WARNING.
|
||||||
|
grep -o WARNING gn-gen-outputs.txt && echo "Found gn WARNING, exiting nix build" && exit 1
|
||||||
|
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
# package customization
|
# package customization
|
||||||
, channel ? "stable"
|
, channel ? "stable"
|
||||||
, enableNaCl ? false
|
, enableNaCl ? false
|
||||||
, enableHotwording ? false
|
|
||||||
, gnomeSupport ? false, gnome ? null
|
, gnomeSupport ? false, gnome ? null
|
||||||
, gnomeKeyringSupport ? false
|
, gnomeKeyringSupport ? false
|
||||||
, proprietaryCodecs ? true
|
, proprietaryCodecs ? true
|
||||||
@ -22,7 +21,7 @@ let
|
|||||||
upstream-info = (callPackage ./update.nix {}).getChannel channel;
|
upstream-info = (callPackage ./update.nix {}).getChannel channel;
|
||||||
|
|
||||||
mkChromiumDerivation = callPackage ./common.nix {
|
mkChromiumDerivation = callPackage ./common.nix {
|
||||||
inherit enableNaCl enableHotwording gnomeSupport gnome
|
inherit enableNaCl gnomeSupport gnome
|
||||||
gnomeKeyringSupport proprietaryCodecs cupsSupport pulseSupport
|
gnomeKeyringSupport proprietaryCodecs cupsSupport pulseSupport
|
||||||
enableWideVine;
|
enableWideVine;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user