xref: /aosp_15_r20/external/llvm/test/LibDriver/libpath.test (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard WorkerRUN: mkdir -p %T/a %T/b
2*9880d681SAndroid Build Coastguard WorkerRUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/a/foo.obj %S/Inputs/a.s
3*9880d681SAndroid Build Coastguard WorkerRUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/b/foo.obj %S/Inputs/b.s
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard WorkerRUN: env "LIB=%T/a;%T/b" llvm-lib /out:%t1.lib foo.obj
6*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm %t1.lib | FileCheck --check-prefix=A %s
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard WorkerRUN: llvm-lib /out:%t2.lib /libpath:%T/a /libpath:%T/b foo.obj
9*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm %t2.lib | FileCheck --check-prefix=A %s
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard WorkerRUN: env LIB=%T/a llvm-lib /libpath:%T/b /out:%t3.lib foo.obj
12*9880d681SAndroid Build Coastguard WorkerRUN: llvm-nm %t3.lib | FileCheck --check-prefix=B %s
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard WorkerA: T a
15*9880d681SAndroid Build Coastguard WorkerB: T b
16