Skip to content

Commit bee45ae

Browse files
committed
Use relative path to point to frameworks folder
1 parent 9df5adb commit bee45ae

File tree

7 files changed

+7
-12
lines changed

7 files changed

+7
-12
lines changed

docs/Testing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,6 @@ Other substitutions:
353353

354354
* ``%clang-importer-sdk``: FIXME.
355355

356-
* ``%clang-importer-sdk-frameworks``: absolute path of the directory where mock frameworks are stored.
357-
358356
* ``%clang_apinotes``: run ``clang -cc1apinotes`` using the locally-built
359357
clang.
360358

test/ClangImporter/MixedSource/resolve-cross-language.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -emit-module -enable-objc-interop -emit-objc-header -o %t %S/Inputs/resolve-cross-language/Base.swift -disable-objc-attr-requires-foundation-module
44
// RUN: cp %S/Inputs/resolve-cross-language/Base-module.map %t/module.map
5-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource) -enable-objc-interop -typecheck -I %t -F %clang-importer-sdk-frameworks -F %S/Inputs/resolve-cross-language %s -verify
5+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -typecheck -I %t -F %clang-importer-sdk-path/frameworks -F %S/Inputs/resolve-cross-language %s -verify
66

77
import Base
88
import BaseUser

test/Index/cross_language.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// RUN: cat %s > %t/combined.m
1010
// RUN: cat %S/Inputs/cross_language.m >> %t/combined.m
11-
// RUN: c-index-test core -print-source-symbols -- %t/combined.m -F %clang-importer-sdk-frameworks -I %t -isysroot %S/../Inputs/clang-importer-sdk >> %t.idx.out
11+
// RUN: c-index-test core -print-source-symbols -- %t/combined.m -F %clang-importer-sdk-path/frameworks -I %t -isysroot %S/../Inputs/clang-importer-sdk >> %t.idx.out
1212
// RUN: %FileCheck %t/combined.m -input-file %t.idx.out
1313

1414
#if SWIFT_CODE

test/PrintAsObjC/lit.local.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config.substitutions.insert(0, ('%check-in-clang',
66
'-fmodules-validate-system-headers '
77
'-Weverything -Werror -Wno-unused-macros -Wno-incomplete-module '
88
'-Wno-auto-import '
9-
'-F %%clang-importer-sdk-frameworks '
9+
'-F %%clang-importer-sdk-path/frameworks '
1010
'-I %%clang-include-dir '
1111
'-isysroot %r/Inputs/clang-importer-sdk' % config.test_source_root) )
1212

@@ -15,6 +15,6 @@ config.substitutions.insert(0, ('%check-in-clang\+\+',
1515
'-Weverything -Werror -Wno-unused-macros -Wno-incomplete-module '
1616
'-Wno-auto-import -Wno-variadic-macros -Wno-c++98-compat-pedantic '
1717
'-Wno-unused-command-line-argument ' # for -fmodules-cache-path
18-
'-F %%clang-importer-sdk-frameworks '
18+
'-F %%clang-importer-sdk-path/frameworks '
1919
'-I %%clang-include-dir '
2020
'-isysroot %r/Inputs/clang-importer-sdk' % config.test_source_root) )

test/PrintAsObjC/reintroduced-new.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/../../test/Inputs/clang-importer-sdk -I %t) -emit-module -o %t %S/Inputs/reintroduced-new.swift -swift-version 4 -disable-objc-attr-requires-foundation-module -module-name main
1010
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/../../test/Inputs/clang-importer-sdk -I %t) -parse-as-library %t/main.swiftmodule -typecheck -emit-objc-header-path %t/generated.h -disable-objc-attr-requires-foundation-module -swift-version 4
11-
// RUN: not %clang -fsyntax-only -x objective-c %s -include %t/generated.h -fobjc-arc -fmodules -Werror -F %clang-importer-sdk-frameworks -isysroot %S/../../test/Inputs/clang-importer-sdk 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s
11+
// RUN: not %clang -fsyntax-only -x objective-c %s -include %t/generated.h -fobjc-arc -fmodules -Werror -F %clang-importer-sdk-path/frameworks -isysroot %S/../../test/Inputs/clang-importer-sdk 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-4 %s
1212

1313
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/../../test/Inputs/clang-importer-sdk -I %t) -emit-module -o %t %S/Inputs/reintroduced-new.swift -disable-objc-attr-requires-foundation-module -module-name main -swift-version 5
1414
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/../../test/Inputs/clang-importer-sdk -I %t) -parse-as-library %t/main.swiftmodule -typecheck -emit-objc-header-path %t/generated.h -disable-objc-attr-requires-foundation-module -swift-version 5
15-
// RUN: not %clang -fsyntax-only -x objective-c %s -include %t/generated.h -fobjc-arc -fmodules -Werror -F %clang-importer-sdk-frameworks -isysroot %S/../../test/Inputs/clang-importer-sdk 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-5 %s
15+
// RUN: not %clang -fsyntax-only -x objective-c %s -include %t/generated.h -fobjc-arc -fmodules -Werror -F %clang-importer-sdk-path/frameworks -isysroot %S/../../test/Inputs/clang-importer-sdk 2>&1 | %FileCheck -check-prefix=CHECK -check-prefix=CHECK-5 %s
1616

1717
// CHECK-NOT: error:
1818

test/PrintAsObjC/swift_name.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %S/../Inputs/empty.swift -typecheck -emit-objc-header-path %t/empty.h
3-
// RUN: %clang -F %clang-importer-sdk-frameworks -E -fobjc-arc -fmodules -isysroot %clang-importer-sdk-path -I %t %s | %FileCheck %s
3+
// RUN: %clang -F %clang-importer-sdk-path/frameworks -E -fobjc-arc -fmodules -isysroot %clang-importer-sdk-path -I %t %s | %FileCheck %s
44

55
// REQUIRES: objc_interop
66

test/lit.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,6 @@ config.substitutions.append(('%build-clang-importer-objc-overlays',
384384
config.substitutions.append(('%clang-importer-sdk-path',
385385
'%r' % (make_path(config.test_source_root, 'Inputs', 'clang-importer-sdk'))))
386386

387-
config.substitutions.append(('%clang-importer-sdk-frameworks',
388-
'%r' % (make_path(config.test_source_root, 'Inputs', 'clang-importer-sdk', 'frameworks'))))
389-
390387
config.substitutions.append(('%clang-importer-sdk-nosource',
391388
'-sdk %r' % (make_path(config.test_source_root, 'Inputs', 'clang-importer-sdk'))))
392389
# FIXME: END -enable-source-import hackaround

0 commit comments

Comments
 (0)