@@ -163,7 +163,6 @@ goto :main
163163 if /i " %1 " == " -quiet" set _quiet = -quiet& goto :ArgOk
164164 :: TODO Consider removing -drt and exclude_drt in some reasonable manner
165165 if /i " %1 " == " -drt" set _drt = 1& set _NOTTAGS = %_NOTTAGS% -nottags:exclude_drt& goto :ArgOk
166- if /i " %1 " == " -nightly" set _nightly = 1& goto :ArgOk
167166 if /i " %1 " == " -rebase" set _rebase = -rebase& goto :ArgOk
168167 if /i " %1 " == " -rundebug" set _RUNDEBUG = 1& goto :ArgOk
169168 :: TODO Figure out best way to specify build arch for tests that are excluded to specific archs
@@ -212,6 +211,16 @@ goto :main
212211 set _Variants = disable_jit
213212 goto :ArgOk
214213 )
214+
215+ if /i " %1 " == " -nightly" (
216+ set _nightly = 1
217+ if " %_ExtraVariants% " == " " (
218+ set _ExtraVariants = mediumlayout,largelayout,forceserialized
219+ ) else (
220+ set _ExtraVariants = %_ExtraVariants% ,mediumlayout,largelayout,forceserialized
221+ )
222+ goto :ArgOk
223+ )
215224
216225 if not " %1 " == " " echo Unknown argument: %1 & set fShowGetHelp = 1
217226
@@ -344,6 +353,24 @@ goto :main
344353:: ============================================================================
345354:RunOneVariant
346355
356+ if " %_BuildType% " == " test" (
357+ rem bytecode layout switches not available in test build
358+ if " %_TESTCONFIG% " == " largelayout" (
359+ if not exist %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG% (
360+ mkdir %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG%
361+ )
362+ echo . > %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG% \rl.log
363+ goto :eof
364+ )
365+ if " %_TESTCONFIG% " == " mediumlayout" (
366+ if not exist %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG% (
367+ mkdir %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG%
368+ )
369+ echo . > %_logsRoot% \%_BuildArch% _%_BuildType% \%_TESTCONFIG% \rl.log
370+ goto :eof
371+ )
372+ )
373+
347374 set _OLD_CC_FLAGS = %EXTRA_CC_FLAGS%
348375 set EXTRA_RL_FLAGS = -appendtestnametoextraccflags
349376 set _exclude_serialized =
@@ -407,6 +434,16 @@ goto :main
407434 set EXTRA_RL_FLAGS =
408435 set _exclude_serialized = -nottags:exclude_serialized
409436 )
437+ if " %_TESTCONFIG% " == " mediumlayout" (
438+ set EXTRA_CC_FLAGS = %EXTRA_CC_FLAGS% -MediumByteCodeLayout -forceserialized
439+ set EXTRA_RL_FLAGS = -nottags:exclude_bytecodelayout
440+ set _exclude_serialized = -nottags:exclude_serialized
441+ )
442+ if " %_TESTCONFIG% " == " largelayout" (
443+ set EXTRA_CC_FLAGS = %EXTRA_CC_FLAGS% -LargeByteCodeLayout -forceserialized
444+ set EXTRA_RL_FLAGS = -nottags:exclude_bytecodelayout
445+ set _exclude_serialized = -nottags:exclude_serialized
446+ )
410447
411448 echo .
412449 echo ############# Starting %_TESTCONFIG% variant #############
0 commit comments