From bf9bbcb4f07244060ac7a7461096b409e40c84d6 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Tue, 7 Feb 2017 10:28:33 -0800 Subject: [PATCH] Honor %FLUTTER_TOOL_ARGS% on Windows (#7929) --- bin/flutter.bat | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/flutter.bat b/bin/flutter.bat index d7b7b9700b..5f98b4fec9 100644 --- a/bin/flutter.bat +++ b/bin/flutter.bat @@ -33,6 +33,9 @@ IF NOT EXIST "%flutter_root%\.git" ( EXIT /B ) +REM To debug the tool, you can uncomment the following line to enable checked mode and set an observatory port: +REM SET FLUTTER_TOOL_ARGS="--observe=65432 --checked" + PUSHD "%flutter_root%" FOR /f %%r IN ('git rev-parse HEAD') DO SET revision=%%r POPD @@ -67,10 +70,10 @@ GOTO after_snapshot :after_snapshot -CALL "%dart%" "%snapshot_path%" %* +CALL "%dart%" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* REM The VM exits with code 253 if the snapshot version is out-of-date. IF /I "%ERRORLEVEL%" EQU "253" ( CALL "%dart%" --snapshot="%snapshot_path%" --packages="%flutter_tools_dir%\.packages" "%script_path%" - CALL "%dart%" "%snapshot_path%" %* + CALL "%dart%" %FLUTTER_TOOL_ARGS% "%snapshot_path%" %* )