diff --git a/tests/std/run.pl b/tests/std/run.pl index e1995885020..004ae4ce689 100644 --- a/tests/std/run.pl +++ b/tests/std/run.pl @@ -31,6 +31,12 @@ $ENV{PM_COMPILER} .= " " . $ENV{CLANG_TARGET}; } +# add additional compiler flags if the compiler is cl.exe. +if (not $ENV{PM_COMPILER}) +{ + $ENV{CL} .= " " . $ENV{PM_CL_MSVC}; +} + my $RunPL = ""; if ($ENV{PM_CL} && $ENV{PM_CL} =~ m/[\-\/]BE / ) { diff --git a/tests/tr1/run.pl b/tests/tr1/run.pl index e1995885020..004ae4ce689 100644 --- a/tests/tr1/run.pl +++ b/tests/tr1/run.pl @@ -31,6 +31,12 @@ $ENV{PM_COMPILER} .= " " . $ENV{CLANG_TARGET}; } +# add additional compiler flags if the compiler is cl.exe. +if (not $ENV{PM_COMPILER}) +{ + $ENV{CL} .= " " . $ENV{PM_CL_MSVC}; +} + my $RunPL = ""; if ($ENV{PM_CL} && $ENV{PM_CL} =~ m/[\-\/]BE / ) {