From 17b58f41e1d38a795a0e0fbe8f33826ef7c72cdd Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 8 Aug 2017 17:09:34 -0700 Subject: [PATCH] Disable optimization when compiling grammars during tests --- test/helpers/load_language.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/helpers/load_language.cc b/test/helpers/load_language.cc index 70eb548c..77ebc848 100644 --- a/test/helpers/load_language.cc +++ b/test/helpers/load_language.cc @@ -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()) {