Skip to content

platform: implement path_has_root() on OS/2#15977

Open
komh wants to merge 1 commit into
mesonbuild:masterfrom
komh:pr-destdir
Open

platform: implement path_has_root() on OS/2#15977
komh wants to merge 1 commit into
mesonbuild:masterfrom
komh:pr-destdir

Conversation

@komh

@komh komh commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

OS/2 has the same problem as Windows. '/path/to/f' is not treated as an absolute path.

Especially, DESTDIR is always appended to the build dir.

@komh komh requested a review from jpakkane as a code owner July 5, 2026 09:55
@bonzini

bonzini commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Can you split the if so that there's no code duplication between Windows and OS/2?

@bonzini bonzini added this to the 1.11.2 milestone Jul 5, 2026
@bonzini

bonzini commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixing the linters requires moving the non-Windows/os2 definition as the else of the new conditional

@komh komh force-pushed the pr-destdir branch 6 times, most recently from 89e9c2e to b214f74 Compare July 6, 2026 10:33
OS/2 has the same problem as Windows. '/path/to/f' is not treated as an
absolute path.

Especially, DESTDIR is always appended to the build dir.
@komh

komh commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

windows / vc2022x64vs check should be fixed?

@bonzini

bonzini commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Still quite ugly. Why not just an if/else specific to path_has_root?

@komh

komh commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I think, this patch already has if-else block specific to path_has_root. Do you mean add if-else without moving path_has_root?

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.

2 participants