dtc: fix build error with clang or Fujitsu compiler (#32543)

This commit is contained in:
Qian Jianhua
2022-09-12 22:59:05 +08:00
committed by GitHub
parent b4f3812077
commit 734ae99285

View File

@@ -27,3 +27,7 @@ class Dtc(MakefilePackage):
def edit(self, spec, prefix):
makefile = FileFilter("Makefile")
makefile.filter("PREFIX =.*", "PREFIX = %s" % prefix)
if self.spec.satisfies("%clang") or self.spec.satisfies("%fj"):
makefile.filter(
r"WARNINGS = -Wall", "WARNINGS = -Wall -Wno-unused-command-line-argument"
)