Peter Rong 839002dd2d
[lld] Remove usage of %T in lld/test (#126133)
`%T` is not unique and deprecated
[[1](https://llvm.org/docs/CommandGuide/lit.html#substitutions)].

This patch replaces all `%T` in `lld/test` with `%t.dir` (`mkdir` if
necessary)

---------

Signed-off-by: Peter Rong <PeterRong@meta.com>
2025-02-10 10:35:44 -08:00

21 lines
712 B
Plaintext

# RUN: yaml2obj %p/Inputs/ret42.yaml -o %t.obj
# RUN: mkdir -p %t.dir/out/tmp
# RUN: cp %t.obj %t.dir/out/out1.obj
# RUN: cp %t.obj %t.dir/out/tmp/out2
# RUN: cp %t.obj %t.dir/out/tmp/out3.xyz
# RUN: lld-link /lib %t.obj /out:%t.dir/out/out4.lib
# RUN: rm -f out1.exe out2.exe out3.exe out3.dll out4.exe
# RUN: lld-link /entry:main %t.dir/out/out1.obj
# RUN: lld-link /entry:main %t.dir/out/tmp/out2
# RUN: lld-link /dll /entry:main %t.dir/out/tmp/out3.xyz
# RUN: lld-link /entry:main -wholearchive:%t.dir/out/out4.lib
# RUN: llvm-readobj out1.exe | FileCheck %s
# RUN: llvm-readobj out2.exe | FileCheck %s
# RUN: llvm-readobj out3.dll | FileCheck %s
# RUN: llvm-readobj out4.exe | FileCheck %s
CHECK: File: