From 3e9e678d7eb6bd90d8fcf8942b995b89a74c0a97 Mon Sep 17 00:00:00 2001 From: Chun-Min Chang Date: Tue, 19 Mar 2024 23:22:51 +0000 Subject: [PATCH] Bug 1880814 - Logs for libvpx configuration on various platforms r=glandium This patch generates log files during the configuration of libvpx on variouse platforms. These logs can be used for manual verification of the correctness of settings. In this particular case, the log file for win/aarch64 reveals the sve feature is disabled on win/aarch64. The logs will be excluded to the repo, by .gitignore and .hgignore settings. Differential Revision: https://phabricator.services.mozilla.com/D204799 --- .gitignore | 3 +++ .hgignore | 3 +++ media/libvpx/generate_sources_mozbuild.sh | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index b01441ce1be6..d684fcb90182 100644 --- a/.gitignore +++ b/.gitignore @@ -360,3 +360,6 @@ docs/mots/index.rst # Ignore generated directory with .class files for GeckoView annotation processor mobile/android/annotations/bin/ + +# Ignore generated log files under media/libvpx +media/libvpx/config/**/config.log diff --git a/.hgignore b/.hgignore index 9316aed506bd..e1a360b07142 100644 --- a/.hgignore +++ b/.hgignore @@ -352,3 +352,6 @@ tps_result\.json$ # Ignore generated directory with .class files for GeckoView annotation processor ^mobile/android/annotations/bin/ + +# Ignore generated log files under media/libvpx +^media/libvpx/config/.*/config.log diff --git a/media/libvpx/generate_sources_mozbuild.sh b/media/libvpx/generate_sources_mozbuild.sh index 5e68d66837b0..4efcb54aa1aa 100755 --- a/media/libvpx/generate_sources_mozbuild.sh +++ b/media/libvpx/generate_sources_mozbuild.sh @@ -169,7 +169,8 @@ function gen_rtcd_header { # $1 - Header file directory. # $2 - Config command line. function gen_config_files { - ./configure $2 > /dev/null + ./configure $2 --log=$BASE_DIR/$LIBVPX_CONFIG_DIR/$1/config.log > /dev/null + echo "Log file: $BASE_DIR/$LIBVPX_CONFIG_DIR/$1/config.log" # Disable HAVE_UNISTD_H. ( echo '/HAVE_UNISTD_H'; echo 'd' ; echo 'w' ; echo 'q' ) | ed -s vpx_config.h