|
@@ -11,9 +11,9 @@ from src.zelkelc.lexer.tokenizer import lex
|
|
|
from src.zelkelc.validator.validator import Validator
|
|
from src.zelkelc.validator.validator import Validator
|
|
|
|
|
|
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[2]
|
|
PROJECT_ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
+CLANG_FLAGS = ["-Wno-unused-command-line-argument", "-Wno-override-module"]
|
|
|
ids = itertools.count()
|
|
ids = itertools.count()
|
|
|
|
|
|
|
|
-
|
|
|
|
|
def _resolve_project_root() -> Path:
|
|
def _resolve_project_root() -> Path:
|
|
|
candidates = [Path.cwd(), PROJECT_ROOT]
|
|
candidates = [Path.cwd(), PROJECT_ROOT]
|
|
|
for candidate in candidates:
|
|
for candidate in candidates:
|
|
@@ -80,6 +80,7 @@ def build_package(build_mode: str, config: dict[str, any], debug_info: bool):
|
|
|
subprocess.run(
|
|
subprocess.run(
|
|
|
[
|
|
[
|
|
|
"clang",
|
|
"clang",
|
|
|
|
|
+ *CLANG_FLAGS,
|
|
|
str(opt_output),
|
|
str(opt_output),
|
|
|
"-o",
|
|
"-o",
|
|
|
str(project_root / "target" / "release" / package_name),
|
|
str(project_root / "target" / "release" / package_name),
|
|
@@ -90,6 +91,7 @@ def build_package(build_mode: str, config: dict[str, any], debug_info: bool):
|
|
|
subprocess.run(
|
|
subprocess.run(
|
|
|
[
|
|
[
|
|
|
"clang",
|
|
"clang",
|
|
|
|
|
+ *CLANG_FLAGS,
|
|
|
str(output_path),
|
|
str(output_path),
|
|
|
"-o",
|
|
"-o",
|
|
|
str(project_root / "target" / "debug" / package_name),
|
|
str(project_root / "target" / "debug" / package_name),
|