From 24933931f7db526028915025311277cf948ca81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Andr=C3=A9=20Vadla=20Ravn=C3=A5s?= Date: Mon, 15 Apr 2024 06:51:45 +0200 Subject: [PATCH] qt: Pass through -F dependency compile args to moc Needed on macOS, where moc would otherwise fail to compile plugin headers. --- mesonbuild/modules/qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py index e46bdc93b1c3..7b72b3866e15 100644 --- a/mesonbuild/modules/qt.py +++ b/mesonbuild/modules/qt.py @@ -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))