File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 3
3
// the program).
4
4
5
5
// RUN: %empty-directory(%t)
6
- // RUN: %target-build-swift -Xfrontend -enable-llvm-vfe %s -emit-ir -o %t/main.ll
6
+ // RUN: %target-build-swift -Xfrontend -enable-llvm-vfe %s -Onone - emit-ir -o %t/main.ll
7
7
// RUN: %target-clang %t/main.ll -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -flto -o %t/main
8
8
// RUN: %target-run %t/main | %FileCheck %s
9
9
19
19
// loaded too late").
20
20
// REQUIRES: no_asan
21
21
22
- // Disable to unblock CI
23
- // REQUIRES: rdar84643923
24
-
25
22
class MyClass {
26
23
func foo( ) { print ( " MyClass.foo " ) }
27
24
func bar( ) { print ( " MyClass.bar " ) }
Original file line number Diff line number Diff line change 3
3
// the program).
4
4
5
5
// RUN: %empty-directory(%t)
6
- // RUN: %target-build-swift -Xfrontend -enable-llvm-wme %s -emit-ir -o %t/main.ll
6
+ // RUN: %target-build-swift -Xfrontend -enable-llvm-wme %s -Onone - emit-ir -o %t/main.ll
7
7
// RUN: %target-clang %t/main.ll -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -flto -o %t/main
8
8
// RUN: %target-run %t/main | %FileCheck %s
9
9
19
19
// loaded too late").
20
20
// REQUIRES: no_asan
21
21
22
- // Disable to unblock CI
23
- // REQUIRES: rdar84643923
24
-
25
22
protocol TheProtocol {
26
23
func func1_live( )
27
24
func func2_dead( )
Original file line number Diff line number Diff line change 6
6
// RUN: %empty-directory(%t)
7
7
8
8
// (1) Build library swiftmodule
9
- // RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme \
9
+ // RUN: %target-build-swift -parse-as-library -Onone - Xfrontend -enable-llvm-wme \
10
10
// RUN: %s -DLIBRARY -module-name Library \
11
11
// RUN: -emit-module -o %t/Library.swiftmodule \
12
12
// RUN: -emit-tbd -emit-tbd-path %t/libLibrary.tbd -Xfrontend -tbd-install_name=%t/libLibrary.dylib
13
13
14
14
// (2) Build client
15
- // RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme \
15
+ // RUN: %target-build-swift -parse-as-library -Onone - Xfrontend -enable-llvm-wme \
16
16
// RUN: %s -DCLIENT -module-name Main -I%t -L%t -lLibrary -o %t/main
17
17
18
18
// (3) Extract a list of used symbols by client from library
19
19
// RUN: %llvm-nm --undefined-only -m %t/main | grep 'from libLibrary' | awk '{print $3}' > %t/used-symbols
20
20
21
21
// (4) Now produce the .dylib with just the symbols needed by the client
22
- // RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme -Xfrontend -internalize-at-link \
22
+ // RUN: %target-build-swift -parse-as-library -Onone - Xfrontend -enable-llvm-wme -Xfrontend -internalize-at-link \
23
23
// RUN: %s -DLIBRARY -lto=llvm-full %lto_flags -module-name Library \
24
24
// RUN: -emit-library -o %t/libLibrary.dylib \
25
25
// RUN: -Xlinker -exported_symbols_list -Xlinker %t/used-symbols -Xlinker -dead_strip
40
40
// loaded too late").
41
41
// REQUIRES: no_asan
42
42
43
- // Disable to unblock CI
44
- // REQUIRES: rdar84643923
45
-
46
43
#if LIBRARY
47
44
48
45
public protocol MyProtocol {
You can’t perform that action at this time.
0 commit comments