-
Notifications
You must be signed in to change notification settings - Fork 3
/
common.py
40 lines (37 loc) · 1.1 KB
/
common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
CONFIG_OPTS = {
"char_with_sign_is_glyph=n": ("", ""),
"char_with_sign_is_glyph=y": ("CHAR_WITH_SIGN_IS_GLYPH", "c"),
"bitset=n": ("", ""),
"bitset=y": ("BITSET", "b"),
"float=n": ("", ""),
"float=y": ("FLOAT", "f"),
"complex=n": ("", ""),
"complex=y": ("COMPLEX", "o"),
"interactive=n": ("", ""),
"interactive=y": ("INTERACTIVE", "i"),
"stdin_eof=n": ("", ""),
"stdin_eof=y": ("STDIN_EOF", "e"),
"late_binding=n": ("", ""),
"late_binding=y": ("LATE_BINDING", "d"),
"cerr=n": ("", ""),
"cerr=y": ("CERR", "r"),
"hoist_globals_on_interactive_input=n": ("", ""),
"hoist_globals_on_interactive_input=y": ("HOIST_GLOBALS_ON_INTERACTIVE_INPUT", "h"),
}
ARCHITECTURES = {
"x86_64": ({"sse4.1": "s", "avx2": "a"}, "X"),
"i386": ({"sse4.1": "s", "avx2": "a"}, "I"),
"aarch64": ({"neon": "n"}, "A"),
}
ARCHITECTURE_SELECTORS = {
"x86_64": {"x86_64"},
"i386": {"i386"},
"x86": {"x86_64", "i386"},
"aarch64": {"aarch64"},
"*": {"x86_64", "i386", "x86", "aarch64"},
}
OSES = {
"windows": "W",
"linux": "L",
"macos": "M",
}