devops: do not compile NaCL for chromium (#12508)

This commit is contained in:
Andrey Lushnikov 2022-03-04 15:38:02 -07:00 committed by GitHub
parent e10b39673c
commit d61862094e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 10 deletions

View file

@ -70,7 +70,7 @@ function archive_compiled_chromium() {
unset IFS
elif [[ $1 == "--compile-linux-arm64" ]]; then
CHROMIUM_FOLDER_NAME="chrome-linux"
IFS=$'\n' CHROMIUM_FILES_TO_ARCHIVE=($(node "${SCRIPT_PATH}/compute_files_to_archive.js" "${CR_CHECKOUT_PATH}/src/infra/archive_config/linux-archive-rel.json" --linux-arm64))
IFS=$'\n' CHROMIUM_FILES_TO_ARCHIVE=($(node "${SCRIPT_PATH}/compute_files_to_archive.js" "${CR_CHECKOUT_PATH}/src/infra/archive_config/linux-archive-rel.json"))
unset IFS
elif [[ $1 == "--compile-win64" ]]; then
CHROMIUM_FOLDER_NAME="chrome-win"

View file

@ -77,6 +77,7 @@ compile_chromium() {
echo 'use_goma = true' >> ./out/Default/args.gn
echo "goma_dir = \"${PLAYWRIGHT_GOMA_PATH}\"" >> ./out/Default/args.gn
fi
echo 'enable_nacl = false' >> ./out/Default/args.gn
echo "===== args.gn ====="
cat ./out/Default/args.gn

View file

@ -11,20 +11,16 @@ const config = configs.find(config => config.gcs_path.includes('chrome-linux.zip
const excludeList = new Set([
// We do not need interactive tests in our archive.
'interactive_ui_tests.exe',
// We no longer compile nacl with Chromium.
'nacl_helper_bootstrap',
'nacl_helper',
'nacl_irt_x86_64.nexe',
]);
// There is no upstream configuration for packaging Linux Arm64 builds,
// so we build one by replacing x86_64-specific nacl binary with arm one.
const replaceMap = {
'--linux-arm64': {
'nacl_irt_x86_64.nexe': 'nacl_irt_arm.nexe',
},
}[process.argv[3]] || {};
const entries = [
...(config.files || []),
...(config.dirs || []),
].filter(entry => !excludeList.has(entry)).map(entry => replaceMap[entry] || entry);
].filter(entry => !excludeList.has(entry));
for (const entry of entries)
console.log(entry);