| Commit-Queue | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
# `--optimization-level`.Dart2wasm does support `--optimization-level`: https://github.com/dart-lang/sdk/blob/main/pkg/dart2wasm/lib/dart2wasm.dart#L22
The issue is just with the handling of `-O0` above. We should be able to combine this with the above case to:
```
-O* | --optimization-level=*)
DART2WASM_ARGS+=("$1")
if [ "${1#-O}" == "0" ] || [ "${1#--optimization-level=}" == "0" ]; then
RUN_BINARYEN=0
else
RUN_BINARYEN=1
fi
shift
;;
```
I tested this locally and it does fix the issue with binaryen not running.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Dart2wasm does support `--optimization-level`: https://github.com/dart-lang/sdk/blob/main/pkg/dart2wasm/lib/dart2wasm.dart#L22
The issue is just with the handling of `-O0` above. We should be able to combine this with the above case to:
```
-O* | --optimization-level=*)
DART2WASM_ARGS+=("$1")
if [ "${1#-O}" == "0" ] || [ "${1#--optimization-level=}" == "0" ]; then
RUN_BINARYEN=0
else
RUN_BINARYEN=1
fi
shift
;;
```I tested this locally and it does fix the issue with binaryen not running.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[dart2wasm] compile_benchmark: always run wasm-opt when optimizations are enabled
Currently if I pass `compile_benchmark ... -O0 ... -O4 ...`, the first
`-O` disables wasm-opt, but the second `-O` doesn't enable it again.
With this CL the last `-O` decides whether to run wasm-opt.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |