Files
swift-mirror/test/Driver/linker-library-with-space.swift
Saleem Abdulrasool 936309ec44 test: adjust quoting of arguments
When running the tests with a toolchain built with the "early swift
driver", we would incorrectly process the command line, losing the empty
string argument to `-sdk` which would then incorrectly process the
remainder of the command line. This allows most of the remaining tests
to pass with the early swift driver on Windows (assuming that the paths
are adjusted properly).
2024-12-03 14:44:42 -08:00

19 lines
909 B
Swift

// RUN: %swiftc_driver -sdk '""' -driver-print-jobs -target x86_64-unknown-linux-gnu -Ffoo -Fsystem car -F cdr -framework bar -Lbaz -lboo -Xlinker -undefined %s 2>&1 > %t.linux.txt
// RUN: %FileCheck -check-prefix LINUX-lib-flag-space %s < %t.linux.txt
// LINUX-lib-flag-space: swift
// LINUX-lib-flag-space: -o [[OBJECTFILE:.*]]
// LINUX-lib-flag-space: clang{{(\.exe)?"? }}
// LINUX-lib-flag-space-DAG: -pie
// LINUX-lib-flag-space-DAG: [[OBJECTFILE]]
// LINUX-lib-flag-space-DAG: -lswiftCore
// LINUX-lib-flag-space-DAG: -L [[STDLIB_PATH:[^ ]+(/|\\\\)lib(/|\\\\)swift(/|\\\\)]]
// LINUX-lib-flag-space-DAG: -Xlinker -rpath -Xlinker [[STDLIB_PATH]]
// LINUX-lib-flag-space-DAG: -F foo -iframework car -F cdr
// LINUX-lib-flag-space-DAG: -framework bar
// LINUX-lib-flag-space-DAG: -L baz
// LINUX-lib-flag-space-DAG: -lboo
// LINUX-lib-flag-space-DAG: -Xlinker -undefined
// LINUX-lib-flag-space: -o main