From a8d8ea3cf39c7a694dcefc6226233ddbbf904ec2 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 15 Mar 2011 16:56:59 -0700 Subject: Add an OS-specific dylib_filename() function to the standard library --- src/lib/macos_os.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/macos_os.rs') diff --git a/src/lib/macos_os.rs b/src/lib/macos_os.rs index fff52897..c2a1bee3 100644 --- a/src/lib/macos_os.rs +++ b/src/lib/macos_os.rs @@ -54,6 +54,10 @@ fn target_os() -> str { ret "macos"; } +fn dylib_filename(str base) -> str { + ret "lib" + base + ".dylib"; +} + fn pipe() -> tup(int, int) { let vec[mutable int] fds = vec(mutable 0, 0); check(os.libc.pipe(_vec.buf[mutable int](fds)) == 0); -- cgit v1.2.3