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

Improve flags handling for meson #1303

Merged
merged 2 commits into from
Feb 27, 2025
Merged

Conversation

mering
Copy link
Contributor

@mering mering commented Oct 16, 2024

This aligns this to what other tools are doing. The _join_flags_list() pattern is also used for other foreign build tools.

This is required to fix --sysroot flag even without cross compiling for example when using in combination with a hermetic toolchain (for example toolchains_llvm). This flag is only available in get_flags_info() and for the complicated ffmpeg build this works flawlessly. Without it being absolute, it doesn't work.

This is required to fix libdav1d in #1295.

@voxeljorge
Copy link
Contributor

I have been able to reproduce the error in a similar build and can confirm that this patch fixes my error, which also was due to the --sysroot flag being a relative path instead of an absolute path before being passed to meson.

@mering
Copy link
Contributor Author

mering commented Jan 2, 2025

@voxeljorge @jsharpe could you help me fix the Windows examples build? I don't have this platform available and don't know much about building on it.

This aligns this to what other tools are doing.

This is required to fix --sysroot flag even without cross compiling for example when using in combination with a hermetic toolchain.
@mering mering force-pushed the meson-flags branch 11 times, most recently from 760f654 to 9beac98 Compare February 25, 2025 16:23
@mering
Copy link
Contributor Author

mering commented Feb 25, 2025

I could fix the CI with the help of @feuerste and it is all green now!

@jsharpe so this is ready for review and merge.

@jsharpe jsharpe requested a review from Copilot February 27, 2025 23:01
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@jsharpe jsharpe merged commit 3a70fdf into bazel-contrib:main Feb 27, 2025
2 checks passed
@mering mering deleted the meson-flags branch February 28, 2025 20:58
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.

3 participants