From 62a7fea0be1405053a00709d4029d380120f5853 Mon Sep 17 00:00:00 2001 From: Aleksander Grzyb Date: Thu, 6 Jan 2022 09:52:25 +0100 Subject: [PATCH] adjust xccc to support arm64 --- Sources/XCRemoteCache/Commands/Prepare/CCWrapperBuilder.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)") }