Ticket #1457: modified_remove_cxx.diff
File modified_remove_cxx.diff, 5.0 KB (added by jkeenan, 12 years ago) |
---|
-
t/steps/init/defaults-01.t
5 5 6 6 use strict; 7 7 use warnings; 8 use Test::More tests => 3 9;8 use Test::More tests => 37; 9 9 use Carp; 10 10 use Cwd; 11 11 use File::Copy; … … 85 85 86 86 $conf->data->set( archname => 'x86_64' ); 87 87 $conf->data->set( cc => 'cc' ); 88 $conf->data->set( cxx => 'c++' );89 88 $conf->data->set( link => 'cc' ); 90 89 $conf->data->set( ld => 'env cc' ); 91 90 $conf->data->set( ld_load_flags => '-bundle -L/usr/local/lib64' ); … … 96 95 "_64_bit_adjustments() returned true"); 97 96 is($conf->data->get( 'archname' ), 'i386', "Got expected value for 'archname'"); 98 97 is($conf->data->get( 'cc' ), 'cc -m32', "Got expected value for 'cc'"); 99 is($conf->data->get( 'cxx' ), 'c++ -m32', "Got expected value for 'cxx'");100 98 is($conf->data->get( 'link' ), 'cc -m32', "Got expected value for 'link'"); 101 99 is($conf->data->get( 'ld' ), 'env cc -m32', "Got expected value for 'ld'"); 102 100 is($conf->data->get( 'ld_load_flags' ), '-bundle -L/usr/local/lib', … … 124 122 125 123 $conf->data->set( archname => 'x86_64' ); 126 124 $conf->data->set( cc => 'cc' ); 127 $conf->data->set( cxx => 'c++' );128 125 $conf->data->set( link => 'cc' ); 129 126 $conf->data->set( ld => 'env cc' ); 130 127 $conf->data->set( ld_load_flags => '-bundle -L/usr/local/lib64' ); … … 135 132 "_64_bit_adjustments() returned true"); 136 133 is($conf->data->get( 'archname' ), 'x86_64', "Got expected value for 'archname'"); 137 134 is($conf->data->get( 'cc' ), 'cc', "Got expected value for 'cc'"); 138 is($conf->data->get( 'cxx' ), 'c++', "Got expected value for 'cxx'");139 135 is($conf->data->get( 'link' ), 'cc', "Got expected value for 'link'"); 140 136 is($conf->data->get( 'ld' ), 'env cc', "Got expected value for 'ld'"); 141 137 is($conf->data->get( 'ld_load_flags' ), '-bundle -L/usr/local/lib64', -
config/inter/progs.pm
75 75 my ($conf, $ask) = @_; 76 76 # Set each variable individually so that hints files can use them as 77 77 # triggers to help pick the correct defaults for later answers. 78 my ( $cc, $ cxx, $link, $ld, $ccflags, $linkflags, $ldflags, $libs, $lex, $yacc );78 my ( $cc, $link, $ld, $ccflags, $linkflags, $ldflags, $libs, $lex, $yacc ); 79 79 $cc = integrate( $conf->data->get('cc'), $conf->options->get('cc') ); 80 80 $cc = prompt( "What C compiler do you want to use?", $cc ) 81 81 if $ask; … … 124 124 if $ask; 125 125 $conf->data->set( libs => $libs ); 126 126 127 $cxx = integrate( $conf->data->get('cxx'), $conf->options->get('cxx') );128 $cxx = prompt( "What C++ compiler do you want to use?", $cxx ) if $ask;129 $conf->data->set( cxx => $cxx );130 127 return ($conf, $cc); 131 128 } 132 129 -
config/init/defaults.pm
102 102 # with position-independent code suitable for dynamic loading. 103 103 cc_shared => $Config{cccdlflags}, # e.g. -fpic for GNU cc. 104 104 105 # C++ compiler -- used to compile parts of ICU. ICU's configure106 # will try to find a suitable compiler, but it prefers GNU c++ over107 # a system c++, which might not be appropriate. This setting108 # allows you to override ICU's guess, but is otherwise currently109 # unset. Ultimately, it should be set to whatever ICU figures110 # out, or parrot should look for it and always tell ICU what to111 # use.112 cxx => 'c++',113 114 105 # Linker, used to link object files (plus libraries) into 115 106 # an executable. It is usually $cc on Unix-ish systems. 116 107 # VMS and Win32 might use "Link". … … 285 276 $archname =~ s/x86_64/i386/; 286 277 287 278 # adjust gcc? 288 for my $cc qw(cc cxxlink ld) {279 for my $cc qw(cc link ld) { 289 280 $conf->data->add( ' ', $cc, '-m32' ); 290 281 } 291 282 -
config/init/hints/irix.pm
27 27 $conf->data->set( libs => $libs ); 28 28 29 29 my $cc = $conf->data->get('cc'); 30 my $cxx = $conf->data->get('cxx');31 30 my $ld = $conf->data->get('ld'); 32 31 my $link = $conf->data->get('link'); 33 32 if ( $cc =~ /cc -64/ ) { 34 $cxx = 'CC -64';35 33 $ld = 'CC -64'; 36 34 $link = 'CC -64'; 37 35 $conf->data->set( 38 cxx => $cxx,39 36 ld => $ld, 40 37 link => $link, 41 38 ); -
t/steps/inter/progs-04.t
56 56 linkflags 57 57 ldflags 58 58 libs 59 cxx60 59 | 61 60 ) 62 61 {