Unverified Commit 596133a7 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

Pass the --disable-dds flag through to dwds (#78806)

parent bde6b162
......@@ -174,6 +174,7 @@ class WebAssetServer implements AssetReader {
bool useSseForDebugBackend,
BuildInfo buildInfo,
bool enableDwds,
bool enableDds,
Uri entrypoint,
ExpressionCompiler expressionCompiler,
NullSafetyMode nullSafetyMode, {
......@@ -280,7 +281,7 @@ class WebAssetServer implements AssetReader {
_digestProvider,
).strategy,
expressionCompiler: expressionCompiler,
spawnDds: true,
spawnDds: enableDds,
);
shelf.Pipeline pipeline = const shelf.Pipeline();
if (enableDwds) {
......@@ -609,6 +610,7 @@ class WebDevFS implements DevFS {
@required this.useSseForDebugBackend,
@required this.buildInfo,
@required this.enableDwds,
@required this.enableDds,
@required this.entrypoint,
@required this.expressionCompiler,
@required this.chromiumLauncher,
......@@ -626,6 +628,7 @@ class WebDevFS implements DevFS {
final bool useSseForDebugBackend;
final BuildInfo buildInfo;
final bool enableDwds;
final bool enableDds;
final bool testMode;
final ExpressionCompiler expressionCompiler;
final ChromiumLauncher chromiumLauncher;
......@@ -703,6 +706,7 @@ class WebDevFS implements DevFS {
useSseForDebugBackend,
buildInfo,
enableDwds,
enableDds,
entrypoint,
expressionCompiler,
nullSafetyMode,
......
......@@ -504,6 +504,7 @@ class ResidentWebRunner extends ResidentRunner {
useSseForDebugBackend: debuggingOptions.webUseSseForDebugBackend,
buildInfo: debuggingOptions.buildInfo,
enableDwds: _enableDwds,
enableDds: !debuggingOptions.disableDds,
entrypoint: _fileSystem.file(target).uri,
expressionCompiler: expressionCompiler,
chromiumLauncher: _chromiumLauncher,
......
......@@ -625,6 +625,7 @@ void main() {
nullSafetyMode: NullSafetyMode.unsound,
),
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......@@ -741,6 +742,7 @@ void main() {
nullSafetyMode: NullSafetyMode.sound,
),
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......@@ -847,6 +849,7 @@ void main() {
useSseForDebugBackend: true,
buildInfo: BuildInfo.debug,
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......@@ -899,6 +902,7 @@ void main() {
]
),
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......@@ -950,6 +954,7 @@ void main() {
]
),
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......@@ -980,6 +985,7 @@ void main() {
treeShakeIcons: false,
),
false,
false,
Uri.base,
null,
null,
......@@ -1059,6 +1065,7 @@ void main() {
nativeNullAssertions: true,
buildInfo: BuildInfo.debug,
enableDwds: false,
enableDds: false,
entrypoint: Uri.base,
testMode: true,
expressionCompiler: null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment