Skip to content

Commit

Permalink
Build SDK mocks only for debug and reldbg builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau committed Dec 28, 2023
1 parent f844cd1 commit 72fa457
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tools/Sources/BuildSDK.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ struct BuildSDK: ParsableCommand {
if let target {
buildCommand.append(" --only-target \(target.rawValue)")
}
switch profile {
case .debug, .reldbg:
buildCommand.append(" --build-mocks true")
default:
buildCommand.append(" --build-mocks false")
}
try Utilities.zsh(buildCommand, workingDirectoryURL: Utilities.sdkDirectoryURL)
}

Expand Down

0 comments on commit 72fa457

Please sign in to comment.