Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
CXXRTLOptions: lazily evaluate pkg-config so it doesn't happen in the…
Browse files Browse the repository at this point in the history
… initialiser.
  • Loading branch information
kivikakk committed May 16, 2024
1 parent 7e48267 commit 93da34a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ final case class CXXRTLOptions(
ldFlags: Seq[String] = Seq(),
pkgConfig: Seq[String] = Seq(),
) {
val allCxxFlags: Seq[String] = cxxFlags ++ pkgConfig.flatMap(
lazy val allCxxFlags: Seq[String] = cxxFlags ++ pkgConfig.flatMap(
Seq("pkg-config", "--cflags", _).!!.trim.split(' '),
)
val allLdFlags: Seq[String] = ldFlags ++ pkgConfig.flatMap(
lazy val allLdFlags: Seq[String] = ldFlags ++ pkgConfig.flatMap(
Seq("pkg-config", "--libs", _).!!.trim.split(' '),
)
}

0 comments on commit 93da34a

Please sign in to comment.