… | |
… | |
48 | detects the language by the file extension will I<not> work. |
48 | detects the language by the file extension will I<not> work. |
49 | |
49 | |
50 | In the absence of these variables, it will do the following |
50 | In the absence of these variables, it will do the following |
51 | transformations on what it guesses will be the compiler name: |
51 | transformations on what it guesses will be the compiler name: |
52 | |
52 | |
53 | gcc => g++ |
53 | gcc => g++ |
54 | clang => clang++ |
54 | clang => clang++ |
55 | xlc => xlC |
55 | xlc => xlC |
56 | cc => g++ |
56 | cc => g++ |
57 | c89 => g++ |
57 | c89 => g++ |
|
|
58 | perlcc => perlc++ |
58 | |
59 | |
59 | =back |
60 | =back |
60 | |
61 | |
61 | =over 4 |
62 | =over 4 |
62 | |
63 | |
… | |
… | |
83 | =cut |
84 | =cut |
84 | |
85 | |
85 | use Config; |
86 | use Config; |
86 | |
87 | |
87 | our %cc = ( |
88 | our %cc = ( |
88 | gcc => "g++", |
89 | gcc => "g++", |
89 | clang => "clang++", |
90 | clang => "clang++", |
90 | xlc => "xlC", |
91 | xlc => "xlC", |
91 | cc => "g++", |
92 | cc => "g++", |
92 | c89 => "g++", |
93 | c89 => "g++", |
|
|
94 | perlcc => "perlc++", |
93 | ); |
95 | ); |
94 | |
96 | |
95 | our $PREFIX = qr{(?:\S+[\/\\])? (?:ccache|distcc)}x; |
97 | our $PREFIX = qr{(?:\S+[\/\\])? (?:ccache|distcc)}x; |
96 | |
98 | |
97 | sub _ccrepl { |
99 | sub _ccrepl { |