Skip to content

Use target-specific substitutions for target-specific RUN-lines #79998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/FixCode/batch-mode.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: not %swift -typecheck -target %target-triple -primary-file %s -emit-fixits-path %t.main.remap -primary-file %S/Inputs/batch-mode-helper.swift -emit-fixits-path %t.helper.remap
// RUN: not %target-swift-frontend -typecheck -primary-file %s -emit-fixits-path %t.main.remap -primary-file %S/Inputs/batch-mode-helper.swift -emit-fixits-path %t.helper.remap
// RUN: %FileCheck -check-prefix=CHECK-MAIN %s < %t.main.remap
// RUN: %FileCheck -check-prefix=NEGATIVE-MAIN %s < %t.main.remap
// RUN: %FileCheck -check-prefix=CHECK-HELPER %s < %t.helper.remap
Expand Down
2 changes: 1 addition & 1 deletion test/IDE/module_api_smoketest.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %empty-directory(%t)
// RUN: %swift-ide-test -generate-module-api-description -- -target %target-triple -module-cache-path %t %s | %FileCheck %s
// RUN: %target-swift-ide-test -generate-module-api-description -module-cache-path %t %s | %FileCheck %s

public struct Struct1 {}

Expand Down
4 changes: 2 additions & 2 deletions test/IDE/rdar141440011.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ public protocol MyProto {}
public struct MyStruct: MyProto {}

// RUN: %empty-directory(%t)
// RUN: %swift -emit-module -o %t/swift_mod.swiftmodule %s -parse-as-library -experimental-skip-all-function-bodies -experimental-skip-non-exportable-decls -experimental-lazy-typecheck -target %target-triple
// RUN: %target-swift-synthesize-interface -module-name swift_mod -I %t -o - -target %target-triple | %FileCheck %s
// RUN: %target-swift-frontend -emit-module -o %t/swift_mod.swiftmodule %s -parse-as-library -experimental-skip-all-function-bodies -experimental-skip-non-exportable-decls -experimental-lazy-typecheck
// RUN: %target-swift-synthesize-interface -module-name swift_mod -I %t -o - | %FileCheck %s

// CHECK: public struct MyStruct : swift_mod.MyProto
2 changes: 1 addition & 1 deletion test/Sema/fixits-derived-conformances.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -emit-module -emit-library -module-name Types %S/Inputs/fixits-derived-conformances-multifile.swift -o %t/%target-library-name(Types)
// RUN: %swift -typecheck -target %target-triple -I %t -verify %s
// RUN: %target-typecheck-verify-swift %s -I %t

import Types

Expand Down