Skip to content

Truly independent web browser

Meta: Build flapc with optimizations

Ali Mohammad Pur5b875a5bbc31
diff --git a/Cargo.toml b/Cargo.toml
index b65977fb9b6..0f1d4e729a1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -45,6 +45,13 @@ incremental = false
codegen-units = 1
lto = true
+# flapc only runs from build scripts, which cargo leaves unoptimized. It generates whole interpreters, so that is slow.
+[profile.release.package.flapc]
+opt-level = 3
+
+[profile.dev.package.flapc]
+opt-level = 3
+
# Line tables keep file and line numbers in panic backtraces. Full debug info doubles the time to build the tests.
[profile.test]
debug = "line-tables-only"