adol-c: use f-strings (#40438)

This commit is contained in:
Alec Scott 2023-10-11 10:43:31 -07:00 committed by GitHub
parent 86d2200523
commit 639ef9e24a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,12 +83,12 @@ def configure_args(self):
configure_args = []
if "+boost" in spec:
configure_args.append("--with-boost={0}".format(spec["boost"].prefix))
configure_args.append(f"--with-boost={spec['boost'].prefix}")
else:
configure_args.append("--with-boost=no")
if "+openmp" in spec:
configure_args.append("--with-openmp-flag={0}".format(self.compiler.openmp_flag))
configure_args.append(f"--with-openmp-flag={self.compiler.openmp_flag}")
configure_args.extend(
self.enable_or_disable("advanced-branching", variant="advanced_branching")