mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Only enable request reference tracking when needed
Only enable when we have a reference dependency output, or are validating dependencies or collecting statistics. This avoids enabling for SourceKit.
This commit is contained in:
@@ -40,3 +40,10 @@
|
||||
// NOOUTPUT_ARGS-DAG: -typecheck
|
||||
// NOOUTPUT_ARGS-DAG: -module-name
|
||||
// NOOUTPUT_ARGS: Frontend Arguments END
|
||||
|
||||
// Make sure that '-incremental' is ignored, we don't want SourceKit to run with
|
||||
// reference dependency tracking enabled. The legacy driver simply doesn't
|
||||
// implement incremental compilation, but make sure when we switch to the new
|
||||
// driver this doesn't start failing.
|
||||
// RUN: %swift-ide-test_plain -test-createCompilerInvocation -incremental %S/Input/main.swift | %FileCheck --check-prefix INCREMENTAL %s
|
||||
// INCREMENTAL-NOT: emit-reference-dependencies
|
||||
|
||||
Reference in New Issue
Block a user