initial commit

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-08-22 11:41:05 +00:00
commit 5c89842dc0
130 changed files with 16319 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import os
from . import packie
all: dict[str, dict[str, str]] = {
"aarch64-semios-linux": {
"CC": "clang -target aarch64-unknown-linux-musl",
"CXX": "clang++ -target aarch64-unknown-linux-musl",
},
"x86_64-semios-linux": {
"CC": "clang -target x86_64-unknown-linux-musl",
"CXX": "clang++ -target x86_64-unknown-linux-musl",
},
"riscv64-semios-linux": {
"CC": "clang -target riscv64-unknown-linux-musl",
"CXX": "clang++ -target riscv64-unknown-linux-musl",
},
}
_target: str = packie.host_arch()
def get_target():
return _target
def set_target(arch: str):
global _target
_target = arch
for key in all[_target].keys():
if not os.environ.get(key):
os.environ[key] = all[_target][key]