chore: reduce size of distributed static library (#918)

Closes: #974
This commit is contained in:
Bert Belder 2022-05-24 09:14:20 +02:00
parent a9567bc31a
commit 9b1bb41d86
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461
3 changed files with 9 additions and 1 deletions

2
.gn
View File

@ -25,8 +25,10 @@ default_args = {
win_crt_flavor_agnostic = true
# Minimize size of debuginfo in distributed static library.
line_tables_only = true
no_inline_line_tables = true
symbol_level = 1
use_debug_fission = false
v8_enable_snapshot_compression = false
v8_enable_javascript_promise_hooks = true

2
build

@ -1 +1 @@
Subproject commit 454490b978ec9fd3b48030f79b497c23f72ec513
Subproject commit e6c71b921e3bcaac372bc616be4b6eb12261590b

View File

@ -875,4 +875,10 @@ edge [fontsize=10]
assert!(files.contains("../../../example/src/count_bytes.py"));
assert!(!files.contains("obj/hello/hello.o"));
}
#[test]
fn test_static_lib_size() {
let static_lib_size = std::fs::metadata(static_lib_path()).unwrap().len();
assert!(static_lib_size <= 200u64 << 20); // No more than 200 MiB.
}
}