develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r34982 - trunk/lib/Parrot

From:
rurban
Date:
January 5, 2009 04:54
Subject:
[svn:parrot] r34982 - trunk/lib/Parrot
Message ID:
20090105125429.DDC7FCB9F9@x12.develooper.com
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(



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About