Commits
96 96 | print("\t---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----\n"); |
97 97 | print("\t$label cmake $flags\n"); |
98 98 | while ( <> ) { |
99 99 | print("\t$label $_"); |
100 100 | } |
101 101 | close( ) or warn $! ? "error closing cmake pipe: $!" : "exit status $? from cmake"; |
102 102 | print("\t---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----\n"); |
103 103 | $ncores=""; |
104 104 | if ($osname == "linux") { $ncores = "-j " . `nproc`; } |
105 105 | else { $ncores = "-j " . `sysctl -n hw.ncpu`/2; } |
106 - | open( , $tgt ? "make $ncores $tgt 2>&1 |" : "make $ncores 2>&1 |" ); |
106 + | open( , $tgt ? "make $tgt 2>&1 |" : "make $ncores 2>&1 |" ); |
107 107 | while ( <> ) { |
108 108 | print("\t$label $_"); |
109 109 | } |
110 110 | close( ) or warn $! ? "error closing make pipe: $!" : "exit status $? from make"; |
111 111 | print("exit status $? from make"); |
112 112 | if ($? != 0) { |
113 113 | print("Retro component compilation failed."); |
114 114 | exit $?; |
115 115 | } |
116 116 | chdir($d); |