diff options
author | Luke Elliott <luke.b.elliott@gmail.com> | 2021-11-23 08:28:24 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-11-25 18:14:54 +0200 |
commit | 39856daf9a5e545a602536b76448a32cf3da590f (patch) | |
tree | 88014c859e5e262597b687158b04a7619a9ce0b1 /mesonbuild/backend/vs2010backend.py | |
parent | bfa0c618773b34f3c97b488d23e5ffed9dec1c0c (diff) | |
download | meson-39856daf9a5e545a602536b76448a32cf3da590f.zip meson-39856daf9a5e545a602536b76448a32cf3da590f.tar.gz meson-39856daf9a5e545a602536b76448a32cf3da590f.tar.bz2 |
Stop backend_startup_project from erasing the last project in a VS solution
if it is not the specified project.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r-- | mesonbuild/backend/vs2010backend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 4597a5a..1c0b9ad 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -467,7 +467,7 @@ class Vs2010Backend(backends.Backend): # Put the startup project first in the project list if startup_idx: - projlist = [projlist[startup_idx]] + projlist[0:startup_idx] + projlist[startup_idx + 1:-1] + projlist.insert(0, projlist.pop(startup_idx)) return projlist |