Commit dbd46f86 authored by Marius Wachtler's avatar Marius Wachtler

pypa: enable optimizations

This converts a lot of -(int) into (-int)
parent 1f220725
...@@ -1074,9 +1074,9 @@ AST_Module* parse_file(const char* fn, FutureFlags inherited_flags) { ...@@ -1074,9 +1074,9 @@ AST_Module* parse_file(const char* fn, FutureFlags inherited_flags) {
const char* getMagic() { const char* getMagic() {
if (ENABLE_PYPA_PARSER) if (ENABLE_PYPA_PARSER)
return "a\ncN"; return "a\ncO";
else else
return "a\ncn"; return "a\nco";
} }
#define MAGIC_STRING_LENGTH 4 #define MAGIC_STRING_LENGTH 4
......
...@@ -1169,6 +1169,7 @@ static AST_Module* parse_with_reader(std::unique_ptr<pypa::Reader> reader, Futur ...@@ -1169,6 +1169,7 @@ static AST_Module* parse_with_reader(std::unique_ptr<pypa::Reader> reader, Futur
pypa::AstModulePtr module; pypa::AstModulePtr module;
pypa::ParserOptions options; pypa::ParserOptions options;
options.perform_inline_optimizations = true;
options.printerrors = false; options.printerrors = false;
options.python3allowed = false; options.python3allowed = false;
options.python3only = false; options.python3only = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment