Skip to content

Commit

Permalink
Update package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Sep 5, 2024
1 parent 976147a commit 2dbd822
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,14 @@ def url_for_version(self, version):
depends_on("libpng", when="@3.2: +png")
depends_on("openjpeg", when="@3.2: +openjpeg")

@when("@:2 ^gmake@:4.1")

def patch(self):
filter_file("\\\#define", "#define", "makefile")

# Use Spack compiler wrapper flags
def inject_flags(self, name, flags):

@when("@:2 ^gmake@:4.1")

def patch(self):
filter_file("\\\#define", "#define", "makefile")

if name == "cflags":
if self.spec.compiler.name == "apple-clang":
flags.append("-Wno-error=implicit-function-declaration")
Expand Down

0 comments on commit 2dbd822

Please sign in to comment.