Debian Codegraph @

README

raw
1 NAME
2 ExtUtils::CppGuess - guess C++ compiler and flags
3
4 SYNOPSIS
5 With Extutils::MakeMaker:
6
7 use ExtUtils::CppGuess;
8
9 my $guess = ExtUtils::CppGuess->new;
10
11 WriteMakefile
12 ( # MakeMaker args,
13 $guess->makemaker_options,
14 );
15
16 With Module::Build:
17
18 my $guess = ExtUtils::CppGuess->new;
19
20 my $build = Module::Build->new
21 ( # Module::Build arguments
22 $guess->module_build_options,
23 );
24 $build->create_build_script;
25
26 DESCRIPTION
27 "ExtUtils::CppGuess" attempts to guess the system's C++ compiler that is
28 compatible with the C compiler that your perl was built with.
29
30 It can generate the necessary options to the Module::Build constructor
31 or to ExtUtils::MakeMaker's "WriteMakefile" function.
32
33 METHODS
34 new
35 Creates a new "ExtUtils::CppGuess" object. Takes the path to the C
36 compiler as the "cc" argument, but falls back to the value of
37 $Config{cc}, which should be what you want anyway.
38
39 You can specify "extra_compiler_flags" and "extra_linker_flags" (as
40 strings) which will be merged in with the auto-detected ones.
41
42 module_build_options
43 Returns the correct options to the constructor of "Module::Build". These
44 are:
45
46 extra_compiler_flags
47 extra_linker_flags
48
49 makemaker_options
50 Returns the correct options to the "WriteMakefile" function of
51 "ExtUtils::MakeMaker". These are:
52
53 CCFLAGS
54 dynamic_lib => { OTHERLDFLAGS => ... }
55
56 If you specify the extra compiler or linker flags in the constructor,
57 they'll be merged into "CCFLAGS" or "OTHERLDFLAGS" respectively.
58
59 is_gcc
60 Returns true if the detected compiler is in the gcc family.
61
62 is_msvc
63 Returns true if the detected compiler is in the MS VC family.
64
65 add_extra_compiler_flags
66 Takes a string as argument that is added to the string of extra compiler
67 flags.
68
69 add_extra_linker_flags
70 Takes a string as argument that is added to the string of extra linker
71 flags.
72
73 AUTHOR
74 Mattia Barbon <[email protected]>
75
76 Steffen Mueller <[email protected]>
77
78 Tobias Leich <[email protected]>
79
80 COPYRIGHT AND LICENSE
81 Copyright 2010, 2011 by Mattia Barbon.
82
83 This program is free software; you can redistribute it and/or modify it
84 under the same terms as Perl itself.
85