@@ -65,7 +65,7 @@ struct DepsPackage {
6565 self . packageHash = Data ( SHA256 . hash ( data: packageSwiftContent) )
6666 }
6767
68- func retrieveREPLInvocation( packageFolder: FilePath , disableSandboxForPackageResolution: Bool , fileManager fm: FileManager , logger: Logger ) async throws -> [ String ] {
68+ func retrieveREPLInvocation( packageFolder: FilePath , buildDependenciesInReleaseMode : Bool , disableSandboxForPackageResolution: Bool , fileManager fm: FileManager , logger: Logger ) async throws -> [ String ] {
6969 /* Let’s see if we need to update/create the Package.swift file. */
7070 let packageSwiftPath = packageFolder. appending ( " Package.swift " )
7171 let packageSwiftURL = packageSwiftPath. url
@@ -99,7 +99,7 @@ struct DepsPackage {
9999 let slaveFd = FileDescriptor ( rawValue: slaveRawFd)
100100 let masterFd = FileDescriptor ( rawValue: masterRawFd)
101101 let pi = ProcessInvocation (
102- " swift " , args: [ " run " , " -c " , " release " , " --repl " ] + ( disableSandboxForPackageResolution ? [ " --disable-sandbox " ] : [ ] ) ,
102+ " swift " , args: [ " run " , " --repl " ] + ( buildDependenciesInReleaseMode ? [ " -c " , " release " ] : [ ] ) + ( disableSandboxForPackageResolution ? [ " --disable-sandbox " ] : [ ] ) ,
103103 usePATH: true , workingDirectory: packageFolder. url,
104104 /* The environment below tricks swift somehow into allowing the REPL when stdout is not a tty.
105105 * We do one better and give it a pty directly and we know we’re good. */
0 commit comments