meson: windows: Fix tmp_install + prefix computation with meson 1.0.1
authorAndres Freund <andres@anarazel.de>
Fri, 24 Feb 2023 03:34:25 +0000 (19:34 -0800)
committerAndres Freund <andres@anarazel.de>
Fri, 24 Feb 2023 03:34:25 +0000 (19:34 -0800)
commit4fc53819a45fe6e7233a69bb279557b2070dcc40
tree9a968a2ee418ad4d140943a5c9f475e3bf38ff52
parent05172f1f37496acc13769b8cc0af6e77591be90f
meson: windows: Fix tmp_install + prefix computation with meson 1.0.1

In d0366bfb3b21 I said:
    Instead of trying to do this in meson.build, call out to the implementation
    meson install uses. This isn't pretty, but it's more reliable than what we had
    before.

Unfortunately it was too ugly - to fix a bug, meson 1.0.1 changed the way the
meson internal runpython helper works, resulting in the previous sys.argv[]
indices not working anymore.  Just open-code it - it's just a few characters
longer.

Committing this quickly to allow ci/cfbot to work with meson 1.0.1 on windows.
meson.build