Commit a3447eb8 authored by Stefan Behnel's avatar Stefan Behnel

lazily load embedding utility function which is normally not used

parent f14767eb
......@@ -2338,6 +2338,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
wmain = "wmain"
else:
wmain = Options.embed
main_method = UtilityCode.load_cached("MainFunction", "Embed.c")
code.globalstate.use_utility_code(
main_method.specialize(
module_name=env.module_name,
......@@ -2942,8 +2943,6 @@ bad:
refnanny_utility_code = UtilityCode.load("Refnanny", "ModuleSetupCode.c")
main_method = UtilityCode.load("MainFunction", "Embed.c")
packed_struct_utility_code = UtilityCode(proto="""
#if defined(__GNUC__)
#define __Pyx_PACKED __attribute__((__packed__))
......
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