Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --frameworks, --sys-frameworks options #85

Open
wants to merge 3 commits into
base: llvm-11.0.0
Choose a base branch
from

Conversation

skissane
Copy link
Contributor

@skissane skissane commented Mar 7, 2021

These can be used to specify the user and system framework directories. Frameworks are primarily a macOS concept (originally inherited from NeXTSTEP), so these options are likely to be mainly useful on macOS (and other closely related platforms such as iOS).

The most common use case is if you want to process headers for system frameworks provided with macOS. In that case you want to pass something like this:

--sys-frameworks $(xcrun --show-sdk-path)/System/Library/Frameworks

--frameworks is equivalent to the -F clang option.

--sys-frameworks is equivalent to the -iframework clang option.

Note originally I called these options with the singular framework not the plural frameworks. I switched to the plural because it makes clearer what they actually do. They don't take the directory of a single framework. They take a Frameworks directory which has *.framework subdirectories. Hence the plural – the Frameworks directory can (and usual will) contain more than one framework.

skissane added 2 commits March 8, 2021 00:03
These can be used to specify the user and system framework directories.
Frameworks are primarily a macOS concept (originally inherited from
NeXTSTEP), so these options are likely to be mainly useful on macOS (and
other closely related platforms such as iOS).

The most common use case is if you want to process headers for system
frameworks provided with macOS. In that case you want to pass something
like this:
```
--sys-framework $(xcrun --show-sdk-path)/System/Library/Frameworks
```

--framework is equivalent to the -F clang option.

--sys-framework is equivalent to the -iframework clang option.
I think the plural makes clearer what this option actually does. It
isn't meant to take a single framework, it is meant to take a directory
containing frameworks as its subdirectories.
@skissane skissane changed the title Add --framework, --sys-framework options Add --frameworks, --sys-frameworks options Mar 8, 2021
@skissane
Copy link
Contributor Author

Failure of build has nothing to do with contents of this PR. Build only fails because of unrelated ArchLinux CI regression fixed by #86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant