diff options
-rw-r--r-- | var/spack/repos/builtin/packages/dtc/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/dtc/package.py b/var/spack/repos/builtin/packages/dtc/package.py index 26b4689ad2..7764380f67 100644 --- a/var/spack/repos/builtin/packages/dtc/package.py +++ b/var/spack/repos/builtin/packages/dtc/package.py @@ -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" + ) |