Skip to content

Commit

Permalink
Add Meson DESTDIR workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Nov 7, 2023
1 parent 53b42ce commit 8037090
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alienfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ share {
build [
sub {
my $build = shift;
# Work around for Meson's `destdir_join` which drops the first part of
# the path when joining (this is the drive letter).
# See <https://github.com/mesonbuild/meson/blob/1.2.3/mesonbuild/scripts/__init__.py>.
$ENV{DESTDIR} =~ s,^([a-z]):\\,\\$1\\,i if $^O eq 'MSWin32';
Alien::Build::CommandSequence->new([
Alien::Meson->exe, 'setup',
(
Expand Down

0 comments on commit 8037090

Please sign in to comment.