Bug 1704580 Comment 1 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(Going from the logs in [m-c/2021-01-28/linux64-noopt-debug](https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.pushdate.2021.01.28.latest.firefox/linux64-noopt-debug) and [m-c/2021-01-29/linux64-noopt-debug](https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.pushdate.2021.01.29.latest.firefox/linux64-noopt-debug), and assuming bug 1689284 is the relevant change between those two)

Prior to bug 1689284, the cargo command for swgl includes:

    cargo ... -C opt-level=1 ... -C opt-level=2 ...

After bug 1689284, the command changes to:

    cargo ... -C opt-level=1 ... -C opt-level=0 ...

The latter is better, but unfortunately cargo prefers the first setting, as evidenced by `OPT_LEVEL=1` in both builds. I'd guess the first `-C opt-level=1` is coming from the root Cargo.toml.

Mike, any idea how to fix this?
(Going from the logs in [m-c/2021-01-28/linux64-noopt-debug](https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.pushdate.2021.01.28.latest.firefox/linux64-noopt-debug) and [m-c/2021-01-29/linux64-noopt-debug](https://firefox-ci-tc.services.mozilla.com/tasks/index/gecko.v2.mozilla-central.pushdate.2021.01.29.latest.firefox/linux64-noopt-debug), and assuming bug 1689284 is the relevant change between those two)

Prior to bug 1689284, the command for building swgl includes:

    rustc ... gfx/wr/swgl/src/lib.rs ... -C opt-level=1 ... -C opt-level=2 ...

After bug 1689284, the command changes to:

    rustc ... gfx/wr/swgl/src/lib.rs ... -C opt-level=1 ... -C opt-level=0 ...

The latter is better, but unfortunately rustc prefers the first setting, as evidenced by `OPT_LEVEL=1` in both builds. I'd guess the first `-C opt-level=1` is coming from the root Cargo.toml.

Mike, any idea how to fix this?

Back to Bug 1704580 Comment 1