@@ -24,7 +24,7 @@ struct Config {
2424 string dmdBinPath = " dmd" ;
2525 bool printLineNumbers; // whether line numbers should be shown on errors
2626}
27- __gshared Config config;
27+ shared Config config;
2828
2929// a range until the next ')', nested () are ignored
3030auto untilClosingParentheses (R)(R rs)
@@ -98,8 +98,8 @@ int main(string[] args)
9898 config.dmdBinPath = environment.get (" DMD" , " dmd" );
9999 auto helpInformation = getopt(
100100 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,
103103 );
104104
105105 if (helpInformation.helpWanted)
@@ -159,7 +159,7 @@ auto compileAndCheck(R)(R buffer, CompileConfig config)
159159 import std.process ;
160160 import std.uni : isWhite;
161161
162- auto args = [.config.dmdBinPath];
162+ string [] args = [.config.dmdBinPath];
163163 args ~= config.args;
164164 with (CompileConfig.TestMode)
165165 final switch (config.mode)
0 commit comments