aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/finishSwigPythonLLDB.py
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-07-10 11:21:06 +0000
committerTim Northover <tnorthover@apple.com>2014-07-10 11:21:06 +0000
commit77d82202d156e5b6e9e6d339e222a1bb2f0e8203 (patch)
tree13531de0ec012a81c21443e4672271aaaf20b817 /lldb/scripts/Python/finishSwigPythonLLDB.py
parentdf8d0caab72214ae5619e5f6bce7a4bd8beb2dc4 (diff)
downloadllvm-77d82202d156e5b6e9e6d339e222a1bb2f0e8203.zip
llvm-77d82202d156e5b6e9e6d339e222a1bb2f0e8203.tar.gz
llvm-77d82202d156e5b6e9e6d339e222a1bb2f0e8203.tar.bz2
[mach-o]: support -syslibroot and -l options
These behave slightly idiosyncratically in the best of cases, and have additional hacks layered on top of that for compatibility with badly behaved build systems (via ld64). For -lXYZ: + If XYZ is actually XY.o then search all library paths for XY.o + Otherwise search all library paths, first for libXYZ.dylib, then libXYZ.a + By default the library paths are /usr/lib and /usr/local/lib in that order. For -syslibroot: + -syslibroot options apply to absolute paths in the search order. + All -syslibroot prefixes that exist are added to the search path *instead* of the original. + If no -syslibroot prefixed path exists, the original is kept. + Hacks^WExceptions: + If only 1 -syslibroot is given and doesn't contain /usr/lib or /usr/local/lib, that path is dropped entirely. (rdar://problem/6438270). + If the last -syslibroot is "/", all of them are ignored entirely. (rdar://problem/5829579). At least, that's my best interpretation of what ld64 does in buildSearchPaths. llvm-svn: 212706
Diffstat (limited to 'lldb/scripts/Python/finishSwigPythonLLDB.py')
0 files changed, 0 insertions, 0 deletions