mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-24 06:49:02 +00:00
Support optimize flag
This commit is contained in:
parent
cabb0a7ede
commit
c70422586a
1 changed files with 1 additions and 1 deletions
2
third_party/python/pycomp.c
vendored
2
third_party/python/pycomp.c
vendored
|
@ -160,7 +160,7 @@ main(int argc, char *argv[])
|
|||
Py_SetProgramName(gc(utf8toutf32(argv[0], -1, 0)));
|
||||
_Py_InitializeEx_Private(1, 0);
|
||||
name = gc(xjoinpaths(".python", StripComponents(inpath, 3)));
|
||||
code = Py_CompileStringExFlags(p, name, Py_file_input, NULL, 0);
|
||||
code = Py_CompileStringExFlags(p, name, Py_file_input, NULL, optimize);
|
||||
if (!code) goto error;
|
||||
marshalled = PyMarshal_WriteObjectToString(code, Py_MARSHAL_VERSION);
|
||||
Py_CLEAR(code);
|
||||
|
|
Loading…
Add table
Reference in a new issue