@@ -24,7 +24,7 @@ struct Config {
24
24
string dmdBinPath = " dmd" ;
25
25
bool printLineNumbers; // whether line numbers should be shown on errors
26
26
}
27
- __gshared Config config;
27
+ shared Config config;
28
28
29
29
// a range until the next ')', nested () are ignored
30
30
auto untilClosingParentheses (R)(R rs)
@@ -98,8 +98,8 @@ int main(string[] args)
98
98
config.dmdBinPath = environment.get (" DMD" , " dmd" );
99
99
auto helpInformation = getopt(
100
100
args,
101
- " l|lines" , " Show the line numbers on errors" , &config.printLineNumbers,
102
- " compiler" , " D compiler to use" , &config.dmdBinPath,
101
+ " l|lines" , " Show the line numbers on errors" , cast ( bool * ) &config.printLineNumbers,
102
+ " compiler" , " D compiler to use" , cast ( string * ) &config.dmdBinPath,
103
103
);
104
104
105
105
if (helpInformation.helpWanted)
@@ -159,7 +159,7 @@ auto compileAndCheck(R)(R buffer, CompileConfig config)
159
159
import std.process ;
160
160
import std.uni : isWhite;
161
161
162
- auto args = [.config.dmdBinPath];
162
+ string [] args = [.config.dmdBinPath];
163
163
args ~= config.args;
164
164
with (CompileConfig.TestMode)
165
165
final switch (config.mode)
0 commit comments