Skip to content

Commit

Permalink
qt: Pass through -F dependency compile args to moc
Browse files Browse the repository at this point in the history
Needed on macOS, where moc would otherwise fail to compile plugin
headers.
  • Loading branch information
oleavr committed Apr 15, 2024
1 parent 4c2f8bb commit 2493393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesonbuild/modules/qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,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')))
if isinstance(dep, InternalDependency):
for incl in dep.include_directories:
compile_args.extend(f'-I{i}' for i in incl.to_string_list(self.interpreter.source_root, self.interpreter.environment.build_dir))
Expand Down

0 comments on commit 2493393

Please sign in to comment.