Skip to content

Commit

Permalink
Explicit set -std=c++98
Browse files Browse the repository at this point in the history
There is a long-standing isuse in cld2: CLD2Owners/cld2#47

It just fails to compile with newer C++ standards, so reliably
compiling it requires passing -std=c++98.
  • Loading branch information
Hugmeir committed Nov 18, 2020
1 parent 98e84b1 commit 59dbeac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ my $build = Module::Build::WithXSpp->new(
'ExtUtils::Typemap::Basic' => '0.04',
},
early_includes => [qw()],
extra_compiler_flags => [ "-Isrc/cld2/internal", "-Isrc/cld2/public", "-Icld2/internal", "-Icld2/public" ],
extra_compiler_flags => [ '-std=c++98', "-Isrc/cld2/internal", "-Isrc/cld2/public", "-Icld2/internal", "-Icld2/public" ],
#extra_linker_flags => [ (defined($additional_link_dir) ? "-L$additional_link_dir" : ()), "-lcld2_full" ],
);

Expand Down

0 comments on commit 59dbeac

Please sign in to comment.