diff --git a/.gn b/.gn index b4512022..cb0e1f2e 100644 --- a/.gn +++ b/.gn @@ -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 diff --git a/build b/build index 454490b9..e6c71b92 160000 --- a/build +++ b/build @@ -1 +1 @@ -Subproject commit 454490b978ec9fd3b48030f79b497c23f72ec513 +Subproject commit e6c71b921e3bcaac372bc616be4b6eb12261590b diff --git a/build.rs b/build.rs index 8089fcc2..032c1052 100644 --- a/build.rs +++ b/build.rs @@ -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. + } }