Disable optimization when compiling grammars during tests

This commit is contained in:
Max Brunsfeld 2017-08-08 17:09:34 -07:00
parent 6a2e2ca712
commit 17b58f41e1

View file

@ -45,6 +45,7 @@ static int compile_parser(
string command = "cl.exe";
command += " /LD";
command += " /I " + header_dirname;
command += " /Od";
command += " " + source_filename;
command += " " + scanner_source_filename;
command += " /link /out:" + output_filename;
@ -105,6 +106,7 @@ static int compile_parser(
command += " -fPIC ";
command += " -I " + header_dirname;
command += " -o " + output_filename;
command += " -O0";
command += " -xc " + source_filename;
if (!scanner_source_filename.empty()) {