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