@@ -128,26 +128,27 @@ C<-fopenmp> enables OpenMP support in via compiler and linker:
128
128
129
129
=head2 Note On Compiler Support
130
130
131
- If used for an unsupported compiler, C<ExtUtils::MakeMaker::os_unsupported > is
132
- invoked, which results an exception propagating from this method being raised
133
- with the value of C<qq{OS unsupported\n} > (note the new line).
131
+ If used for an unsupported compiler, C<ExtUtils::MakeMaker::os_unsupported >
132
+ is invoked, which results an exception propagating from this method being
133
+ raised with the value of C<qq{OS unsupported\n} > (note the new line).
134
134
135
135
This module assumes that the compiler in question is the same one used to
136
- build C<perl > . Since the vast majority of C<perl > s are building using C< gcc > ,
137
- initial support is targeting it. However, like C<perl > , many other compilers
138
- may be used.
136
+ build C<perl > . Since the vast majority of C<perl > s are building using
137
+ C< gcc > , initial support is targeting it. However, like C<perl > , many
138
+ other compilers may be used.
139
139
140
- Adding support for a new compiler should be straightforward; please section on
141
- contributing, below.
140
+ Adding support for a new compiler should be straightforward; please
141
+ section on contributing, below.
142
142
143
143
=head2 Contributing
144
144
145
- The biggest need is to support additional compilers. OpenMP is a well established
146
- standard across compilers, but there is guarantee that all compilers will use the
147
- same flags, library names, or header files. It should also be easy to contribute
148
- a patch to add this information, which is effectively its purpose. At the very least,
149
- please create an issue at the official issue tracker to request this support, and
150
- be sure to include the relevant information. Chances are the maintainers of this
145
+ The biggest need is to support additional compilers. OpenMP is a well
146
+ established standard across compilers, but there is no guarantee that
147
+ all compilers will use the same flags, library names, or header files. It
148
+ should also be easy to contribute a patch to add this information, which
149
+ is effectively its purpose. At the very least, please create an issue
150
+ at the official issue tracker to request this support, and be sure to
151
+ include the relevant information. Chances are the maintainers of this
151
152
module do not have access to an unsupported compiler.
152
153
153
154
=head1 METHODS
@@ -157,15 +158,16 @@ module do not have access to an unsupported compiler.
157
158
=item C<cflags >
158
159
159
160
Returns flag used by a supported compiler to enable OpenMP. If not support,
160
- an empty string is provided since by definition all OpenMP programs must compile
161
- because OpenMP pramgas are annotations hidden behind source code comments.
161
+ an empty string is provided since by definition all OpenMP programs
162
+ must compile because OpenMP pramgas are annotations hidden behind source
163
+ code comments.
162
164
163
165
Example, GCC uses, C<-fopenmp > .
164
166
165
167
=item C<lddlflags >
166
168
167
- Returns the flag used by the linker to enable OpenMP. This is usually the same
168
- as what is returned by C<cflags > .
169
+ Returns the flag used by the linker to enable OpenMP. This is usually
170
+ the same as what is returned by C<cflags > .
169
171
170
172
Example, GCC uses, C<-fopenmp > , for this as well.
171
173
@@ -175,36 +177,33 @@ Used in support of L<Inline::C>'s C<with> method (inherited from
175
177
L<Inline> ). This method is not called directly, but used when compiling
176
178
OpenMP programs with C<Inline::C > :
177
179
178
- use Alien::OpenMP;
179
- use Inline (
180
- C => 'DATA',
181
- with => qw/Alien::OpenMP/,
180
+ use Alien::OpenMP; use Inline (
181
+ C => 'DATA', with => qw/Alien::OpenMP/,
182
182
);
183
183
184
184
The nice, compact form above replaces this mess:
185
185
186
- use Alien::OpenMP;
187
- use Inline (
188
- C => 'DATA',
189
- ccflagsex => Alien::OpenMP::cflags(),
190
- lddlflags => join( q{ }, $Config::Config{lddlflags}, Alien::OpenMP::lddlflags() ),
186
+ use Alien::OpenMP; use Inline (
187
+ C => 'DATA', ccflagsex => Alien::OpenMP::cflags(),
188
+ lddlflags => join( q{ }, $Config::Config{lddlflags},
189
+ Alien::OpenMP::lddlflags() ),
191
190
);
192
191
193
192
=item C<_check_libs >
194
193
195
194
Internal method.
196
195
197
- Returns an array reference of libraries, e.g., C<gomp > for C<gcc > . It is meant
198
- specifically as an internal method to support L<Devel::CheckLib> in this module's
199
- C<Makefile.PL > .
196
+ Returns an array reference of libraries, e.g., C<gomp > for C<gcc > . It is
197
+ meant specifically as an internal method to support L<Devel::CheckLib>
198
+ in this module's C<Makefile.PL > .
200
199
201
200
=item C<_check_headers >
202
201
203
202
Internal method.
204
203
205
- Returns an array reference of header files, e.g., C<omp.h > for C<gcc > . It is meant
206
- specifically as an internal method to support L<Devel::CheckLib> in this module's
207
- C<Makefile.PL > .
204
+ Returns an array reference of header files, e.g., C<omp.h > for C<gcc > . It
205
+ is meant specifically as an internal method to support L<Devel::CheckLib>
206
+ in this module's C<Makefile.PL > .
208
207
209
208
=back
210
209
0 commit comments