[lld] [LLD][COFF] Update nodefaultlibs after updating search paths (PR #128813)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 10 08:11:39 PDT 2025


================
@@ -36,3 +36,8 @@ MSVC stamps uppercase references in OBJ directives, thus ensure that passing low
 
 UPPERCASE-NOT: OLDNAMES
 UPPERCASE-NOT: LIBCMT
+
+# RUN: yaml2obj -o %T/defaultlib.obj %p/Inputs/defaultlib.yaml
+# RUN: mkdir -p %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64
+# RUN: cp %p/Inputs/ret42.lib %t.dir/sysroot/VC/Tools/MSVC/1.1.1.1/lib/x64/default.lib
+# RUN: not lld-link /winsysroot:%t.dir/sysroot /out:%t.exe /entry:main /subsystem:console /nodefaultlib:default.lib %T/defaultlib.obj
----------------
A2uria wrote:

Done. However tests like `winsysroot.test` already do that. Using  `/winsysroot` is just to avoid pulling things like `libcmt.lib` into the source tree.

https://github.com/llvm/llvm-project/pull/128813


More information about the llvm-commits mailing list