diff --git a/Sources/XCRemoteCache/Commands/Prepare/CCWrapperBuilder.swift b/Sources/XCRemoteCache/Commands/Prepare/CCWrapperBuilder.swift index bd6f9fa..4f542c2 100644 --- a/Sources/XCRemoteCache/Commands/Prepare/CCWrapperBuilder.swift +++ b/Sources/XCRemoteCache/Commands/Prepare/CCWrapperBuilder.swift @@ -72,7 +72,7 @@ class TemplateBasedCCWrapperBuilder: CCWrapperBuilder { ) infoLog("ClangWrapperBuilder compiles file at \(compilationFile).") // -O3: optimize for faster execution - let args = [clangCommand, "-O3", compilationFile.path, "-o", destination.path] + let args = [clangCommand, "-arch", "arm64", "-arch", "x86_64", "-O3", compilationFile.path, "-o", destination.path] let compilationOutput = try shell("xcrun", args, URL(fileURLWithPath: "").path, nil) infoLog("Clang compilation output: \(compilationOutput)") }