diff options
| author | mattbsage <mattbsage@gmail.com> | 2025-06-19 13:26:17 +1000 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-07-09 09:59:50 -0700 |
| commit | ed6cbaa92aeb015fe05a068303a248fad1c144f4 (patch) | |
| tree | 1d05fccc58f08027c297c08ba0032225ad190199 /mesonbuild/cmake | |
| parent | 3c37b766f4ee0c4a571f51e2f29ff25f9dab2a53 (diff) | |
| download | meson-ed6cbaa92aeb015fe05a068303a248fad1c144f4.tar.gz | |
Add -F compiler flag for included MacOS frameworks
Currently, when using frameworks on MacOS systems, Meson will send the appropriate flags to the linker but fails to pass flags to the compiler, resulting in the headers not being found for the included frameworks.
This patch adds the required "-F{framework}" flag to the compiler options, so that the compiler can find the headers of included frameworks.
See: https://github.com/mesonbuild/meson/issues/14641
Diffstat (limited to 'mesonbuild/cmake')
| -rw-r--r-- | mesonbuild/cmake/tracetargets.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/cmake/tracetargets.py b/mesonbuild/cmake/tracetargets.py index 9873845f8..2b2b93de7 100644 --- a/mesonbuild/cmake/tracetargets.py +++ b/mesonbuild/cmake/tracetargets.py @@ -87,6 +87,7 @@ def resolve_cmake_trace_targets(target_name: str, curr_path = Path(*path_to_framework) framework_path = curr_path.parent framework_name = curr_path.stem + res.public_compile_opts += [f"-F{framework_path}"] res.libraries += [f'-F{framework_path}', '-framework', framework_name] else: res.libraries += [curr] |
