diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-03-30 15:41:37 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-03-30 15:41:37 -0400 |
| commit | 38d6189d4335bbcdc38f0c31cf769082b96f22fa (patch) | |
| tree | 430c133eafe0284d0bc10e7571b42bbf02b34aca /docs/libraries.md | |
| parent | 494e4ef006cd66ee1d91ea23de9da085bec1e8db (diff) | |
Further support for .dylib files on mac by changing syntax for library
imports to `use -lfoo` instead of `use foo.so`
Diffstat (limited to 'docs/libraries.md')
| -rw-r--r-- | docs/libraries.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/libraries.md b/docs/libraries.md index 983497fa..551b011a 100644 --- a/docs/libraries.md +++ b/docs/libraries.md @@ -119,16 +119,16 @@ Finally, the resulting binary can be executed to actually run the program! In Tomo, a shared library is built out of a *directory* that contains multiple `.tm` files. Each `.tm` file in the directory (excluding those that start with an underscore) will be compiled and linked together to produce a single -`libwhatever.so` file and `whatever.h` file that can be used by other Tomo -projects. You can build a library by running `tomo -L dirname/` or `tomo -L` in -the current directory. +`libwhatever.so` file (or `libwhatever.dylib` on Mac) and `whatever.h` file +that can be used by other Tomo projects. You can build a library by running +`tomo -L dirname/` or `tomo -L` in the current directory. ### Installing If you additionally add the `-I` flag, Tomo will copy the entire directory (excluding files and directories that begin with `.` such as `.git`) into `~/.local/share/tomo/installed/` and create a symbolic link for the library's -`.so` file in `~/.local/share/tomo/lib/`. +`.so` file (or `.dylib` file on Mac) in `~/.local/share/tomo/lib/`. ### Using Shared Libraries |
