You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2014/04/22 22:59:08 UTC

[lucy-commits] [2/6] git commit: MSVC flags shouldn't be needed for XS compilation

MSVC flags shouldn't be needed for XS compilation


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/f42f56ee
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/f42f56ee
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/f42f56ee

Branch: refs/heads/master
Commit: f42f56eea527824ea69a8ef729799ada61e9419c
Parents: 3e5e15e
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sun Feb 16 22:11:22 2014 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Tue Apr 22 21:15:44 2014 +0200

----------------------------------------------------------------------
 compiler/perl/lib/Clownfish/CFC/Perl/Build.pm | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/f42f56ee/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
----------------------------------------------------------------------
diff --git a/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm b/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
index 4ac8e51..938da21 100644
--- a/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
+++ b/compiler/perl/lib/Clownfish/CFC/Perl/Build.pm
@@ -58,16 +58,8 @@ my $BUILDLIB_DIR = 'buildlib';
 sub new {
     my $self = shift->SUPER::new( @_ );
 
-    my $extra_ccflags = $self->extra_compiler_flags;
-    if ( $self->config('cc') =~ /^cl\b/ ) {
-        # Compile as C++ under MSVC.
-        push @$extra_ccflags, qw(
-            -TP -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
-        );
-        # Redefine 'for' to fix broken 'for' scoping under MSVC6.
-        push @$extra_ccflags, '-Dfor="if(0);else for"';
-    }
     # Define HAS_BOOL, so that the Perl headers don't redefine 'bool'.
+    my $extra_ccflags = $self->extra_compiler_flags;
     push @$extra_ccflags, '-DHAS_BOOL';
     $self->extra_compiler_flags(@$extra_ccflags);