1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/LibDriver/infer-output-path.test
Peter Collingbourne fe08b5f6b2 LibDriver: Fix output path inference.
The inferred output file name is based on the first input file, not the
first one with extension .obj. The output file was also being written to
the wrong directory; it needs to be written to whichever directory on the
libpath it was found in. This change fixes both issues.

llvm-svn: 241710
2015-07-08 19:00:46 +00:00

16 lines
456 B
Plaintext

RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/a.obj %S/Inputs/a.s
RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/b.o %S/Inputs/b.s
RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/c %S/Inputs/b.s
RUN: rm -f %T/a.lib
RUN: llvm-lib %T/a.obj
RUN: test -e %T/a.lib
RUN: rm -f %T/b.lib
RUN: llvm-lib /libpath:%T b.o
RUN: test -e %T/b.lib
RUN: rm -f %T/c.lib
RUN: llvm-lib /libpath:%T c
RUN: test -e %T/c.lib