mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:16:37 +00:00

`%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>
11 lines
409 B
LLVM
11 lines
409 B
LLVM
; REQUIRES: x86
|
|
; RUN: mkdir -p %t.dir
|
|
; RUN: llvm-as -o %t.dir/lto-linker-opts.obj %s
|
|
; RUN: env LIB=%S/Inputs lld-link /out:%t.dir/lto-linker-opts.exe /entry:main /subsystem:console %t.dir/lto-linker-opts.obj
|
|
|
|
target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
|
|
!llvm.linker.options = !{!0}
|
|
!0 = !{!"/DEFAULTLIB:ret42.lib"}
|