mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 07:33:08 +00:00
Classify .tbd files as shared libraries
On macOS, a .tbd ("text-based dylib definition") file is a shared library
stub, allowing symbols to be defined only once for all the architectures
the library was compiled for.
.tbd files can be linked like .dylib files.
This commit is contained in:
parent
477798b37e
commit
c0e9d3fb86
@ -2012,7 +2012,8 @@ pub fn hasAsmExt(filename: []const u8) bool {
|
||||
pub fn hasSharedLibraryExt(filename: []const u8) bool {
|
||||
if (mem.endsWith(u8, filename, ".so") or
|
||||
mem.endsWith(u8, filename, ".dll") or
|
||||
mem.endsWith(u8, filename, ".dylib"))
|
||||
mem.endsWith(u8, filename, ".dylib") or
|
||||
mem.endsWith(u8, filename, ".tbd"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user