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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"
)