You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/03/01 05:44:53 UTC

[lucy-commits] svn commit: r1075657 - /incubator/lucy/trunk/clownfish/Build.PL

Author: marvin
Date: Tue Mar  1 04:44:52 2011
New Revision: 1075657

URL: http://svn.apache.org/viewvc?rev=1075657&view=rev
Log:
Compile in C++ mode under MSVC.

Modified:
    incubator/lucy/trunk/clownfish/Build.PL

Modified: incubator/lucy/trunk/clownfish/Build.PL
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/Build.PL?rev=1075657&r1=1075656&r2=1075657&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/Build.PL (original)
+++ incubator/lucy/trunk/clownfish/Build.PL Tue Mar  1 04:44:52 2011
@@ -17,6 +17,11 @@ use 5.008003;
 use strict;
 use warnings;
 use Module::Build;
+use Config;
+my $extra_cc_flags = '';
+if ( $Config{cc} eq 'cl' ) {
+    $extra_cc_flags .= '/TP ';
+}
 
 my $builder = Module::Build->new(
     module_name => 'Clownfish',
@@ -40,6 +45,7 @@ my $builder = Module::Build->new(
             *.manifest
             ),
     ],
+    extra_compiler_flags => $extra_cc_flags,
 );
 
 $builder->create_build_script();