fix(rule): compileObj denies user to add custom languages
This commit is contained in:
parent
ea0e5613e8
commit
2b452c744a
1 changed files with 4 additions and 13 deletions
|
@ -165,19 +165,10 @@ def compile(
|
||||||
|
|
||||||
def compileObjs(w: ninja.Writer, scope: ComponentScope) -> list[str]:
|
def compileObjs(w: ninja.Writer, scope: ComponentScope) -> list[str]:
|
||||||
objs = []
|
objs = []
|
||||||
objs += compile(w, scope, "cc", wilcard(scope, ["*.c"]))
|
for rule in rules.rules.values():
|
||||||
objs += compile(
|
if rule.id not in ["cp", "ld", "ar"]:
|
||||||
w,
|
objs += compile(w, scope, rule.id, wilcard(scope, rule.fileIn))
|
||||||
scope,
|
|
||||||
"cxx",
|
|
||||||
wilcard(scope, ["*.cpp", "*.cc", "*.cxx"]),
|
|
||||||
)
|
|
||||||
objs += compile(
|
|
||||||
w,
|
|
||||||
scope,
|
|
||||||
"as",
|
|
||||||
wilcard(scope, ["*.s", "*.asm", "*.S"]),
|
|
||||||
)
|
|
||||||
return objs
|
return objs
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue