aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/dsymutil/ARM/swiftmodule-include-from-interface.test
blob: 00141f12587d4248e710f5db0db2ab788fa0863e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# RUN: dsymutil -include-swiftmodules-from-interface -verbose -oso-prepend-path=%p -y -o %t.dSYM  %s | FileCheck %s
#
# RUN: dsymutil -include-swiftmodules-from-interface --linker parallel -verbose -oso-prepend-path=%p -y %s -o %t-parallel.dSYM | FileCheck %s
#
# To regenerate:
# echo ''>I.swift
# echo ''>B.swift
# echo 'import I'>main.swift
# xcrun swiftc -emit-module-interface-path I.swiftinterface -enable-library-evolution I.swift
# xcrun swiftc -emit-module-path B.swiftmodule B.swift -Xfrontend -no-serialize-debugging-options
# xcrun swiftc -explicit-module-build main.swift -I. -module-cache-path cache -g -Xfrontend  -no-serialize-debugging-options
# output is "B.swiftmodule" and "cache/I*.swiftmodule"
#
# CHECK-NOT: Skipping compiled textual Swift interface: {{.*}}/Inputs/Binary.swiftmodule
# CHECK-NOT: Skipping compiled textual Swift interface: {{.*}}/Inputs/FromInterface.swiftmodule

#
---
triple:          'arm64-apple-darwin'
objects:
  - filename:        '../Inputs/Binary.swiftmodule'
    timestamp:       0
    type:            50
    symbols:         []
  - filename:        '../Inputs/FromInterface.swiftmodule'
    timestamp:       0
    type:            50
    symbols:         []
  - filename:        '../Inputs/FromInterface.swiftmodule'
    timestamp:       0
    type:            50
    symbols:         []
...