Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1198996

Browse files
authored
Remove --disable-dart-dev across flutter/engine. (#54845)
As per the Dart CLI team and @bkonyi, this is no longer providing value and we shouldn't cargo-cult it. Work towards flutter/flutter#154268.
1 parent cd48ec2 commit 1198996

File tree

18 files changed

+22
-37
lines changed

18 files changed

+22
-37
lines changed

bin/et

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ if [ ! -d "${ENGINE_DIR}/tools/engine_tool/.dart_tool" ]; then
5757
exit 1
5858
fi
5959

60-
"${DART}" --disable-dart-dev "${ENGINE_DIR}/tools/engine_tool/bin/et.dart" "$@"
60+
"${DART}" "${ENGINE_DIR}/tools/engine_tool/bin/et.dart" "$@"

bin/et.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ cd "%engine_tool_dir%"
3737
REM Do not use the CALL command in the next line to execute Dart. CALL causes
3838
REM Windows to re-read the line from disk after the CALL command has finished
3939
REM regardless of the ampersand chain.
40-
"%dart%" --disable-dart-dev bin\et.dart %* & exit /B !ERRORLEVEL!
40+
"%dart%" bin\et.dart %* & exit /B !ERRORLEVEL!

build/dart/rules.gni

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ template("flutter_frontend_server") {
6565
]
6666
snapshot_depfile = "$kernel_output.d"
6767

68-
common_vm_args = [ "--disable-dart-dev" ]
69-
7068
flutter_patched_sdk =
7169
rebase_path("$root_out_dir/flutter_patched_sdk", root_build_dir)
7270

@@ -106,7 +104,7 @@ template("flutter_frontend_server") {
106104
frontend_server =
107105
rebase_path("$root_gen_dir/frontend_server_aot.dart.snapshot")
108106

109-
args = [ dart ] + common_vm_args + [ frontend_server ] + common_args
107+
args = [ dart ] + [ frontend_server ] + common_args
110108
}
111109
} else {
112110
prebuilt_dart_action(target_name) {
@@ -122,8 +120,7 @@ template("flutter_frontend_server") {
122120
inputs = [ invoker.main_dart ]
123121
outputs = [ invoker.kernel_output ]
124122
depfile = snapshot_depfile
125-
vm_args = common_vm_args
126-
args = common_args
123+
vm_args = (args = common_args)
127124
}
128125
}
129126
}
@@ -337,7 +334,6 @@ template("application_snapshot") {
337334
abs_output = rebase_path(output)
338335
rel_output = rebase_path(output, root_build_dir)
339336
snapshot_vm_args = [
340-
"--disable-dart-dev",
341337
"--deterministic",
342338
"--packages=$package_config",
343339
"--snapshot=$abs_output",

ci/analyze.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ WEB_SDK_TEST_FILES="$FLUTTER_DIR/web_sdk/test/*"
7878
for testFile in $WEB_SDK_TEST_FILES
7979
do
8080
echo "Running $testFile"
81-
(cd "$FLUTTER_DIR"; FLUTTER_DIR="$FLUTTER_DIR" "$DART" --disable-dart-dev --enable-asserts $testFile)
81+
(cd "$FLUTTER_DIR"; FLUTTER_DIR="$FLUTTER_DIR" "$DART" --enable-asserts $testFile)
8282
done

ci/bin/format.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,6 @@ final class HeaderFormatChecker extends FormatChecker {
10491049
}
10501050
final List<String> args = <String>[
10511051
_dartBin,
1052-
'--disable-dart-dev',
10531052
_headerGuardCheckBin,
10541053
...include.map((String f) => '--include=$f'),
10551054
];
@@ -1078,7 +1077,6 @@ final class HeaderFormatChecker extends FormatChecker {
10781077
}
10791078
final List<String> args = <String>[
10801079
_dartBin,
1081-
'--disable-dart-dev',
10821080
_headerGuardCheckBin,
10831081
'--fix',
10841082
...include.map((String f) => '--include=$f'),

ci/check_build_configs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ DART="${DART_BIN}/dart"
4343

4444
cd "$SCRIPT_DIR"
4545
"$DART" \
46-
--disable-dart-dev \
4746
"$SRC_DIR/flutter/tools/pkg/engine_build_configs/bin/check.dart" \
4847
"$SRC_DIR"
4948

ci/clang_tidy.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ echo "$(date +%T) Running clang_tidy"
6868

6969
cd "$SCRIPT_DIR"
7070
"$DART" \
71-
--disable-dart-dev \
7271
"$SRC_DIR/flutter/tools/clang_tidy/bin/main.dart" \
7372
--src-dir="$SRC_DIR" \
7473
${CLANG_TIDY_PATH:+--clang-tidy="$SRC_DIR/$CLANG_TIDY_PATH"} \

ci/format.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ cd "%ci_dir%"
3737
REM Do not use the CALL command in the next line to execute Dart. CALL causes
3838
REM Windows to re-read the line from disk after the CALL command has finished
3939
REM regardless of the ampersand chain.
40-
"%dart%" --disable-dart-dev bin\format.dart %* & exit /B !ERRORLEVEL!
40+
"%dart%" bin\format.dart %* & exit /B !ERRORLEVEL!

ci/format.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ DART="${DART_BIN}/dart"
4242

4343
cd "$SCRIPT_DIR"
4444
"$DART" \
45-
--disable-dart-dev \
4645
bin/format.dart \
4746
"$@"

ci/licenses.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dart --version
8181
# Runs the tests for the license script.
8282
function run_tests() (
8383
cd "$SRC_DIR/flutter/tools/licenses"
84-
find . -name "*_test.dart" | xargs -n 1 dart --disable-dart-dev --enable-asserts
84+
find . -name "*_test.dart" | xargs -n 1 dart -enable-asserts
8585
)
8686

8787
# Collects the license information from the repo.
@@ -94,7 +94,6 @@ function collect_licenses() (
9494
# interpreter is faster than using unoptimized machine code, which has
9595
# no chance of being optimized(due to its size).
9696
dart \
97-
--disable-dart-dev \
9897
--enable-asserts \
9998
--interpret_irregexp \
10099
lib/main.dart \

0 commit comments

Comments
 (0)