Skip to content

Commit 20f793c

Browse files
committed
Add new files to librt sources
1 parent 5d86dcf commit 20f793c

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

mypyc/build.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,22 @@ class ModDesc(NamedTuple):
5353

5454

5555
LIBRT_MODULES = [
56-
ModDesc("librt.internal", ["internal/librt_internal.c"], [], ["internal"]),
57-
ModDesc("librt.strings", ["strings/librt_strings.c"], [], ["strings"]),
56+
ModDesc(
57+
"librt.internal",
58+
["internal/librt_internal_static.c", "internal/librt_internal.c"],
59+
[],
60+
["internal"],
61+
),
62+
ModDesc(
63+
"librt.strings",
64+
["strings/librt_strings_static.c", "strings/librt_strings.c"],
65+
[],
66+
["strings"],
67+
),
5868
ModDesc(
5969
"librt.base64",
6070
[
71+
"base64/librt_base64_static.c",
6172
"base64/librt_base64.c",
6273
"base64/lib.c",
6374
"base64/codec_choose.c",
@@ -107,6 +118,7 @@ class ModDesc(NamedTuple):
107118
ModDesc(
108119
"librt.vecs",
109120
[
121+
"vecs/librt_vecs_static.c",
110122
"vecs/librt_vecs.c",
111123
"vecs/vec_i64.c",
112124
"vecs/vec_i32.c",
@@ -120,7 +132,9 @@ class ModDesc(NamedTuple):
120132
["vecs/librt_vecs.h", "vecs/vec_template.c"],
121133
["vecs"],
122134
),
123-
ModDesc("librt.time", ["time/librt_time.c"], ["time/librt_time.h"], []),
135+
ModDesc(
136+
"librt.time", ["time/librt_time_static.c", "time/librt_time.c"], ["time/librt_time.h"], []
137+
),
124138
]
125139

126140
try:

mypyc/lib-rt/internal/librt_internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define LIBRT_INTERNAL_H
33

44
#include <Python.h>
5+
#include <stdbool.h>
56

67
// ABI version -- only an exact match is compatible. This will only be changed in
78
// very exceptional cases (likely never) due to strict backward compatibility

0 commit comments

Comments
 (0)