Skip to content

Commit

Permalink
fix: if condition
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <[email protected]>
  • Loading branch information
hamada147 committed Dec 14, 2023
1 parent b37f717 commit ec1b1d2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apollo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ kotlin {
binaries.framework {
baseName = "ApolloLibrary"
embedBitcode(BitcodeEmbeddingMode.DISABLE)
if (System.getenv("XCODE_VERSION_MAJOR").toInt() >= 1500) {
linkerOpts += "-ld64"
if (os.isMacOsX) {
if (System.getenv().containsKey("XCODE_VERSION_MAJOR") && System.getenv("XCODE_VERSION_MAJOR") == "1500") {
linkerOpts += "-ld64"
}
}
}
}
Expand Down

0 comments on commit ec1b1d2

Please sign in to comment.