https://llvm.org/bugs/show_bug.cgi?id=26637

            Bug ID: 26637
           Summary: coff: Add a lld-link driver flag that mirrors the LIB
                    env var
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedb...@nondot.org
          Reporter: nicolaswe...@gmx.de
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Like link.exe, lld-link supports setting a LIB env var to a ;-separated list of
directories that it's going to search for libraries, to be used e.g. like so:

LIB=c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\VC\lib\amd64;c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\win_sdk\Lib\10.0.10586.0\um\x64;c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\win_sdk\Lib\10.0.10586.0\ucrt\x64;c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\VC\atlmfc\lib\amd64


It'd be good if the same feature was also exposed as a regular flag, since not
having to set env vars can keep builds simpler. i.e. something like

link-lld
-lsystem\c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\VC\lib\amd64
-lsystem=c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\win_sdk\Lib\10.0.10586.0\um\x64
-lsystem=c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\win_sdk\Lib\10.0.10586.0\ucrt\x64
-lsystem=c:\src\depot_tools\win_toolchain\vs2013_files\4087e065abebdca6dbd0caca2910c6718d2ec67f\win_sdk\bin\..\..\VC\atlmfc\lib\amd64

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to