mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 07:06:05 +00:00

Translate -lfoo to -lfoo.lib while making sure that -lfoo.lib stays as -lfoo.lib. Also, these arguments were being passed twice: once explicitly via AddAllArgs, and again implicitly as linker inputs. Now they are passed once. Fixes PR20868. llvm-svn: 217895
8 lines
268 B
C
8 lines
268 B
C
// RUN: %clang -target i686-pc-win32 -loldnames -lkernel32.lib -luser32.lib -### %s 2>&1 | FileCheck %s
|
|
// CHECK-NOT: "-loldnames.lib"
|
|
// CHECK-NOT: "-lkernel32.lib"
|
|
// CHECK-NOT: "-luser32.lib"
|
|
// CHECK: "oldnames.lib"
|
|
// CHECK: "kernel32.lib"
|
|
// CHECK: "user32.lib"
|