# macho: if lib or framework not found, wait until syms resolved · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4ce62087502c2b1eca7d5721f3face5bc4fe538b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4ce62087502c2b1eca7d5721f3face5bc4fe538b

Requested commit: 4ce62087502c2b1eca7d5721f3face5bc4fe538b

Commit: 4ce62087502c2b1eca7d5721f3face5bc4fe538b

Tree: c644b3255c21b351dad5cbad657a838762e3aa43

Author: Jakub Konka

Committer: Jakub Konka

## Message

````
macho: if lib or framework not found, wait until syms resolved

This way, we will inform the user that there are unresolved symbols
in addition to missing library/framework as requested on the linker
line. If all symbols were resolved on the other hand, we still
flag up that the library/framework cannot be found.

Example behaviour:

```
$ zig cc hello.c -framework MyFoundation --verbose
warning(link): framework not found for '-framework MyFoundation'
warning(link): Framework search paths:
warning(link):   /Library/Frameworks
warning(link):   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks
thread 1079397 panic: attempt to unwrap error: FrameworkNotFound
...stack trace...
```

and

```
❯ zig cc hello.c -lWAT --verbose
warning(link): library not found for '-lWAT'
warning(link): Library search paths:
warning(link):   /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
warning(link):   /usr/local/lib
thread 1079824 panic: attempt to unwrap error: LibraryNotFound
...stack trace...
```

````

## Parents

- [1abae064325112895de8324bf230c7cb5cdb2711](https://git.cafe/gitcafe/zig/commit/1abae064325112895de8324bf230c7cb5cdb2711?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4ce62087502c2b1eca7d5721f3face5bc4fe538b?format=markdown)
