Author: rurban
Date: Mon Jan 5 04:54:29 2009
New Revision: 34982
Modified:
trunk/lib/Parrot/Test.pm
Log:
Fix fatal [perl #58704] [BUG] t/src/compiler.t failures with VC++ / Win32
- added -DPARROT_IN_EXTENSION on MSVC. To be tested on borland.
Modified: trunk/lib/Parrot/Test.pm
==============================================================================
--- trunk/lib/Parrot/Test.pm (original)
+++ trunk/lib/Parrot/Test.pm Mon Jan 5 04:54:29 2009
@@ -935,6 +935,7 @@
my $cmd =
"$PConfig{cc} $PConfig{ccflags} $PConfig{cc_debug} "
+ . ($^O =~ m/MSWin32/ and $PConfig{cc} eq 'cl' ? "-DPARROT_IN_EXTENSION" : "")
. " -I./include -c "
. "$PConfig{cc_o_out}$obj_f $source_f";
my $exit_code = run_command(