mirror of
https://github.com/egormanga/Slang.git
synced 2025-03-01 18:09:30 +03:00
14 lines
314 B
Python
14 lines
314 B
Python
#!/usr/bin/python3
|
|
# Slang Native (ASM) compiler target
|
|
|
|
from .. import *
|
|
from ...ast import *
|
|
from utils import *
|
|
|
|
class NativeCompiler(Compiler): pass
|
|
|
|
try: compiler = importlib.import_module(f".{platform.machine()}", __package__).compiler
|
|
except ModuleNotFoundError: compiler = NativeCompiler
|
|
|
|
# by Sdore, 2021
|