|
43 | 43 | // RUN: %FileCheck %s < %t.complex.txt
|
44 | 44 | // RUN: %FileCheck -check-prefix COMPLEX %s < %t.complex.txt
|
45 | 45 |
|
| 46 | +// RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-ios7.1 -Xlinker -rpath -Xlinker customrpath %s 2>&1 > %t.simple.txt |
| 47 | +// RUN: %FileCheck -check-prefix IOS-custom-rpath %s < %t.simple.txt |
| 48 | + |
| 49 | +// RUN: %swiftc_driver -driver-print-jobs -target armv7-unknown-linux-gnueabihf -Xlinker -rpath -Xlinker customrpath %s 2>&1 > %t.linux.txt |
| 50 | +// RUN: %FileCheck -check-prefix LINUX-custom-rpath %s < %t.linux.txt |
| 51 | + |
46 | 52 | // RUN: %swiftc_driver -driver-print-jobs -target x86_64-apple-macosx10.9 -g %s | %FileCheck -check-prefix DEBUG %s
|
47 | 53 |
|
48 | 54 | // RUN: %empty-directory(%t)
|
|
276 | 282 | // LINUX_DYNLIB-x86_64: clang++{{"? }}
|
277 | 283 | // LINUX_DYNLIB-x86_64-DAG: -shared
|
278 | 284 | // LINUX_DYNLIB-x86_64-DAG: -fuse-ld=gold
|
| 285 | +// LINUX_DYNLIB-x86_64-DAG: -L bar |
279 | 286 | // LINUX_DYNLIB-x86_64-NOT: -pie
|
280 | 287 | // LINUX_DYNLIB-x86_64-DAG: -Xlinker -rpath -Xlinker [[STDLIB_PATH:[^ ]+/lib/swift/linux]]
|
281 | 288 | // LINUX_DYNLIB-x86_64: [[STDLIB_PATH]]/x86_64/swiftrt.o
|
282 | 289 | // LINUX_DYNLIB-x86_64-DAG: [[OBJECTFILE]]
|
283 | 290 | // LINUX_DYNLIB-x86_64-DAG: @[[AUTOLINKFILE]]
|
284 | 291 | // LINUX_DYNLIB-x86_64-DAG: [[STDLIB_PATH]]
|
285 | 292 | // LINUX_DYNLIB-x86_64-DAG: -lswiftCore
|
286 |
| -// LINUX_DYNLIB-x86_64-DAG: -L bar |
287 | 293 | // LINUX_DYNLIB-x86_64: -o dynlib.out
|
288 | 294 |
|
| 295 | +// IOS-custom-rpath: swift |
| 296 | +// IOS-custom-rpath: -o [[OBJECTFILE:.*]] |
| 297 | + |
| 298 | +// IOS-custom-rpath: bin/ld{{"? }} |
| 299 | +// IOS-custom-rpath: -rpath customrpath |
| 300 | +// IOS-custom-rpath: -rpath [[STDLIB_PATH:[^ ]+/lib/swift/iphonesimulator]] |
| 301 | + |
| 302 | +// LINUX-custom-rpath: swift |
| 303 | +// LINUX-custom-rpath: -o [[OBJECTFILE:.*]] |
| 304 | + |
| 305 | +// LINUX-custom-rpath: clang++{{"? }} |
| 306 | +// LINUX-custom-rpath: -Xlinker -rpath -Xlinker customrpath |
| 307 | +// LINUX-custom-rpath: -Xlinker -rpath -Xlinker [[STDLIB_PATH:[^ ]+/lib/swift/linux]] |
| 308 | + |
289 | 309 | // DEBUG: bin/swift
|
290 | 310 | // DEBUG-NEXT: bin/swift
|
291 | 311 | // DEBUG-NEXT: bin/ld{{"? }}
|
|
0 commit comments