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/07/01 08:31:17 UTC

[lucy-commits] svn commit: r1141835 - in /incubator/lucy/branches/0.1: ./ clownfish/buildlib/Clownfish/Build.pm

Author: marvin
Date: Fri Jul  1 06:31:17 2011
New Revision: 1141835

URL: http://svn.apache.org/viewvc?rev=1141835&view=rev
Log:
LUCY-171 Turn off stupid MSVC warnings. 

Modified:
    incubator/lucy/branches/0.1/   (props changed)
    incubator/lucy/branches/0.1/clownfish/buildlib/Clownfish/Build.pm

Propchange: incubator/lucy/branches/0.1/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Fri Jul  1 06:31:17 2011
@@ -1 +1 @@
-/incubator/lucy/trunk:1126586,1134011,1134355,1134472,1134843-1134848,1134953,1134956,1139709,1139711,1139714,1140001,1140287,1140296,1140387,1140393,1140400,1140418,1140420,1140422,1140437,1140440,1140894,1140924,1140930-1140931,1140940,1140955,1140958-1140959,1140964,1141721
+/incubator/lucy/trunk:1126586,1134011,1134355,1134472,1134843-1134848,1134953,1134956,1139709,1139711,1139714,1140001,1140287,1140296,1140387,1140393,1140400,1140418,1140420,1140422,1140437,1140440,1140894,1140924,1140930-1140931,1140940,1140955,1140958-1140959,1140964,1141362,1141721

Modified: incubator/lucy/branches/0.1/clownfish/buildlib/Clownfish/Build.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/branches/0.1/clownfish/buildlib/Clownfish/Build.pm?rev=1141835&r1=1141834&r2=1141835&view=diff
==============================================================================
--- incubator/lucy/branches/0.1/clownfish/buildlib/Clownfish/Build.pm (original)
+++ incubator/lucy/branches/0.1/clownfish/buildlib/Clownfish/Build.pm Fri Jul  1 06:31:17 2011
@@ -51,9 +51,9 @@ sub extra_ccflags {
         $extra_ccflags .= "-fno-inline-functions ";
     }
 
-    # Compile as C++ under MSVC.
-    if ( $self->config('cc') eq 'cl' ) {
-        $extra_ccflags .= '/TP ';
+    # Compile as C++ under MSVC.  Turn off stupid warnings, too.
+    if ( $self->config('cc') =~ /^cl\b/ ) {
+        $extra_ccflags .= '/TP -D_CRT_SECURE_NO_WARNINGS ';
     }
 
     if ( defined $gcc_version ) {