dtc: fix build error with clang or Fujitsu compiler (#32543)
This commit is contained in:
parent
b4f3812077
commit
734ae99285
@ -27,3 +27,7 @@ class Dtc(MakefilePackage):
|
|||||||
def edit(self, spec, prefix):
|
def edit(self, spec, prefix):
|
||||||
makefile = FileFilter("Makefile")
|
makefile = FileFilter("Makefile")
|
||||||
makefile.filter("PREFIX =.*", "PREFIX = %s" % prefix)
|
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"
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user