
The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
20 lines
732 B
C
20 lines
732 B
C
// REQUIRES: system-darwin
|
|
|
|
// Check that ld gets "-lto_library".
|
|
|
|
// RUN: mkdir -p %t/bin
|
|
// RUN: mkdir -p %t/lib
|
|
// RUN: touch %t/lib/libLTO.dylib
|
|
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
|
|
// RUN: -ccc-install-dir %t/bin -mlinker-version=133 2> %t.log
|
|
// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH %s -input-file %t.log
|
|
//
|
|
// LINK_LTOLIB_PATH: {{ld(.exe)?"}}
|
|
// LINK_LTOLIB_PATH: "-lto_library"
|
|
|
|
// Also pass -lto_library even if the file doesn't exist; if it's needed at
|
|
// link time, ld will complain instead.
|
|
// RUN: %clang -target x86_64-apple-darwin10 -### %s \
|
|
// RUN: -ccc-install-dir %S/dummytestdir -mlinker-version=133 2> %t.log
|
|
// RUN: FileCheck -check-prefix=LINK_LTOLIB_PATH %s -input-file %t.log
|