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

qt: Pass through -F dependency compile args to moc #13121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oleavr
Copy link
Contributor

@oleavr oleavr commented Apr 21, 2024

Needed on macOS, where moc would otherwise fail to compile plugin headers.

Needed on macOS, where moc would otherwise fail to compile plugin
headers.
@oleavr oleavr requested a review from jpakkane as a code owner April 21, 2024 21:10
@@ -453,7 +453,7 @@ def _compile_moc_impl(self, state: ModuleState, kwargs: MocCompilerKwArgs) -> T.
inc = state.get_include_args(include_dirs=kwargs['include_directories'])
compile_args: T.List[str] = []
for dep in kwargs['dependencies']:
compile_args.extend(a for a in dep.get_all_compile_args() if a.startswith(('-I', '-D')))
compile_args.extend(a for a in dep.get_all_compile_args() if a.startswith(('-I', '-F', '-D')))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will pass through any -F.* options, is that desireable, or is it just -F?

If it is I'd probably prefer if a.startswith(...) or a in {'-F'}, to be conservative

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

Successfully merging this pull request may close these issues.

None yet

3 participants