Skip to content
Snippets Groups Projects
Commit 3c8ae4c1 authored by Jeff Muizelaar's avatar Jeff Muizelaar
Browse files

Bug 1698295 - Build glsl with opt-level=2 to improve build times. r=glandium

This changes reduces the time spent in swgl shader translation
from 24s to 12s.

Differential Revision: https://phabricator.services.mozilla.com/D108327
parent 71ab76ae
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,13 @@ opt-level = 1 ...@@ -66,6 +66,13 @@ opt-level = 1
[profile.release.build-override] [profile.release.build-override]
opt-level = 1 opt-level = 1
# optimizing glsl more makes a big difference in swgl build times
[profile.dev.package.glsl]
opt-level = 2
[profile.release.package.glsl]
opt-level = 2
[patch.crates-io] [patch.crates-io]
chardetng = { git = "https://github.com/hsivonen/chardetng", rev="fd4ed671ef495af4dcda4c4cba3ef8d426db8af1" } chardetng = { git = "https://github.com/hsivonen/chardetng", rev="fd4ed671ef495af4dcda4c4cba3ef8d426db8af1" }
chardetng_c = { git = "https://github.com/hsivonen/chardetng_c", rev="ed8a4c6f900a90d4dbc1d64b856e61490a1c3570" } chardetng_c = { git = "https://github.com/hsivonen/chardetng_c", rev="ed8a4c6f900a90d4dbc1d64b856e61490a1c3570" }
......
...@@ -16,6 +16,13 @@ panic = "abort" ...@@ -16,6 +16,13 @@ panic = "abort"
[profile.dev] [profile.dev]
panic = "abort" panic = "abort"
# optimizing glsl more makes a big difference in swgl build times
[profile.dev.package.glsl]
opt-level = 2
[profile.release.package.glsl]
opt-level = 2
# Running wrench on android built with master cargo-apk results in a crash # Running wrench on android built with master cargo-apk results in a crash
# due to a mismatched version of android_glue (a dependency of winit). # due to a mismatched version of android_glue (a dependency of winit).
# Override it to use a suitable version of android_glue. # Override it to use a suitable version of android_glue.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment