ocaml: compile versions before 4.8.0 again (#48470)

This commit is contained in:
Olivier Cessenat 2025-01-09 18:15:12 +01:00 committed by GitHub
parent a2b7fee3fe
commit f4d2ff0068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,10 @@ def install(self, spec, prefix):
string=True,
)
configure(*(base_args), f"CC={self.compiler.cc}")
if self.spec.satisfies("@4.8.0:"):
base_args += [f"CC={self.compiler.cc}"]
configure(*(base_args))
make("world.opt")
make("install", "PREFIX={0}".format(prefix))