@@ -57,7 +57,7 @@ class AdaCompiler extends BaseCompiler {
57
57
// this however restricts users from including standard library packages, as
58
58
// Ada mandates that 'with' clauses are placed in the context clause,
59
59
// which in the case of a single subprogram is outside of its declaration and body.
60
- preProcess ( source ) {
60
+ preProcess ( source ) {
61
61
return source ;
62
62
}
63
63
@@ -72,17 +72,19 @@ class AdaCompiler extends BaseCompiler {
72
72
// output as 'output.s' and not end up with 'example.s'. If the output is left
73
73
// as 'example.s' CE can't find it and thus you get no output.
74
74
let inputFileName = options . pop ( ) ;
75
- for ( let i = 0 ; i < options . length ; i ++ ) {
76
- if ( options [ i ] === '-cargs' ) {
77
- options . splice ( i , 0 , inputFileName ) ;
75
+ for ( let i = 0 ; i < options . length ; i ++ ) {
76
+ if ( options [ i ] === '-cargs' ) {
77
+ options . splice ( i , 0 , inputFileName ) ;
78
78
break ;
79
79
}
80
80
}
81
- const result = this . exec ( compiler , options , execOptions ) ;
82
- result . inputFilename = inputFilename ;
83
- result . stdout = utils . parseOutput ( result . stdout , inputFilename ) ;
84
- result . stderr = utils . parseOutput ( result . stderr , inputFilename ) ;
85
- return result ;
81
+ return this . exec ( compiler , options , execOptions )
82
+ . then ( result => {
83
+ result . inputFilename = inputFilename ;
84
+ result . stdout = utils . parseOutput ( result . stdout , inputFilename ) ;
85
+ result . stderr = utils . parseOutput ( result . stderr , inputFilename ) ;
86
+ return result ;
87
+ } ) ;
86
88
}
87
89
}
88
90
0 commit comments