Skip to content

Commit fc6411a

Browse files
fix: Enable diagnostic remarks only with debug log (#180)
1 parent ad9608b commit fc6411a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cmd/xcode/xcodebuild.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,13 @@ func getArgsToPass(config xcelerate.Config, xcodeArgs xcodeargs.XcodeArgs) []str
333333

334334
if config.BuildCacheEnabled {
335335
additional = maps.Clone(xcodeargs.CacheArgs)
336+
diagnosticRemarks := "NO"
337+
if config.DebugLogging {
338+
diagnosticRemarks = "YES"
339+
}
336340
maps.Copy(additional, map[string]string{
337-
"COMPILATION_CACHE_REMOTE_SERVICE_PATH": config.ProxySocketPath,
341+
"COMPILATION_CACHE_REMOTE_SERVICE_PATH": config.ProxySocketPath,
342+
"COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS": diagnosticRemarks,
338343
})
339344
}
340345

internal/xcelerate/xcodeargs/args.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type XcodeArgs interface {
1818

1919
var CacheArgs = map[string]string{
2020
"COMPILATION_CACHE_ENABLE_PLUGIN": "YES",
21-
"COMPILATION_CACHE_ENABLE_DIAGNOSTIC_REMARKS": "YES",
2221
"COMPILATION_CACHE_ENABLE_INTEGRATED_QUERIES": "YES",
2322
"COMPILATION_CACHE_ENABLE_DETACHED_KEY_QUERIES": "YES",
2423
"SWIFT_ENABLE_COMPILE_CACHE": "YES",

0 commit comments

Comments
 (0)