On Mon, 6 Aug 2007 15:20:39 -0700
chromatic <[EMAIL PROTECTED]> wrote:
> That's not exactly the same as a stringified hash.  I think we can
> just remove the cc_run() bits and be fine (at least, it worked for
> me).

Indeed, with the attached patch I have working attributes again.

Mark
Index: config/auto/attributes.pm
===================================================================
--- config/auto/attributes.pm	(revision 20530)
+++ config/auto/attributes.pm	(working copy)
@@ -66,7 +66,7 @@
     my $ccflags = $conf->option_or_data( 'ccflags');
     my $tryflags = "$ccflags -D$attr";
 
-    # These are OK to fail, becuase we're trying them out.
+    # These are OK to fail, because we're trying them out.
     my $command_line = "$cc -o test -Iinclude $tryflags test.c";
     $verbose and print "  ", $command_line, $/;
 
@@ -75,9 +75,6 @@
 
     return if $exit_code;
 
-    my %eval = eval cc_run();
-    return if !%eval;
-
     $conf->data->set( ccflags => $tryflags );
 
     return;

Reply via email to