On Fri Jun 01 09:29:18 2007, chromatic <!-- x --> at wgz.org wrote: > This patch is very close. Instead of handling compilation manually, I > recommend instead using cc_gen() and cc_build() from > Parrot::Configure::Step. > See config/auto/sizes.pm for an example. > > -- c >
Can you explain why using these functions would be the better course? In particular, how would this approach square with the criticism Andy Dougherty made earlier in this thread on March 21: > + unless ( eval { cc_build(); 1 } ) { > + warn "Compilation failed with '$cc'\n"; > + exit 1; > + } > This has two problems. First, it ignores the return value of cc_build(). > That's understandable at the moment since cc_build doesn't seem to have a > documented return value. It should, of course. kid51