Revision | 1350bd2557c8f67f69f4d34e434a1510c3aa864f (tree) |
---|---|
Zeit | 2024-04-20 11:34:02 |
Autor | Fs <Fsu0413@vip....> |
Commiter | Fs |
make use of NINJA_STATUS environment variable, and make use of %P / %w / %W introduced in ninja 1.12.0
@@ -101,6 +101,9 @@ set PARALLELNUM=0 | ||
101 | 101 | |
102 | 102 | set /a PARALLELNUM=%NUMBER_OF_PROCESSORS%+1 |
103 | 103 | |
104 | +rem Pay attention to space before EOL next line! Keep it! | |
105 | +set NINJA_STATUS=[%f/%t %P/%o/%c %w/%W] | |
106 | + | |
104 | 107 | cmd /c &CONFIGURECOMMANDLINE& |
105 | 108 | if errorlevel 1 exit 1 |
106 | 109 |
@@ -192,6 +195,9 @@ set PARALLELNUM=0 | ||
192 | 195 | |
193 | 196 | set /a PARALLELNUM=%NUMBER_OF_PROCESSORS%+1 |
194 | 197 | |
198 | +rem Pay attention to space before EOL next line! Keep it! | |
199 | +set NINJA_STATUS=[%f/%t %P/%o/%c %w/%W] | |
200 | + | |
195 | 201 | cmd /c &CONFIGURECOMMANDLINE& |
196 | 202 | if errorlevel 1 exit 1 |
197 | 203 |
@@ -286,6 +292,9 @@ set PARALLELNUM=0 | ||
286 | 292 | |
287 | 293 | set /a PARALLELNUM=%NUMBER_OF_PROCESSORS%+1 |
288 | 294 | |
295 | +rem Pay attention to space before EOL next line! Keep it! | |
296 | +set NINJA_STATUS=[%f/%t %P/%o/%c %w/%W] | |
297 | + | |
289 | 298 | cmd /c &CONFIGURECOMMANDLINE& |
290 | 299 | if errorlevel 1 exit 1 |
291 | 300 |
@@ -434,6 +443,8 @@ if [ $? -ne 0 ]; then | ||
434 | 443 | fi |
435 | 444 | fi |
436 | 445 | |
446 | +NINJA_STATUS='[%f/%t %P/%o/%c %w/%W] '; export NINJA_STATUS | |
447 | + | |
437 | 448 | &CONFIGURECOMMANDLINE& |
438 | 449 | [ $? -eq 0 ] || exit 1 |
439 | 450 |
@@ -552,6 +563,8 @@ if [ $? -ne 0 ]; then | ||
552 | 563 | fi |
553 | 564 | fi |
554 | 565 | |
566 | +NINJA_STATUS='[%f/%t %P/%o/%c %w/%W] '; export NINJA_STATUS | |
567 | + | |
555 | 568 | &CONFIGURECOMMANDLINE& |
556 | 569 | [ $? -eq 0 ] || exit 1 |
557 | 570 |
@@ -902,6 +915,8 @@ if [ $? -ne 0 ]; then | ||
902 | 915 | fi |
903 | 916 | fi |
904 | 917 | |
918 | +NINJA_STATUS='[%f/%t %P/%o/%c %w/%W] '; export NINJA_STATUS | |
919 | + | |
905 | 920 | &CONFIGURECOMMANDLINE& |
906 | 921 | [ $? -eq 0 ] || exit 1 |
907 | 922 |