Stop backend_startup_project from erasing the last project in a VS solution

if it is not the specified project.
pull/9640/head
Luke Elliott 3 years ago committed by Jussi Pakkanen
parent bfa0c61877
commit 39856daf9a
  1. 4
      docs/markdown/snippets/fix_backend_startup_project.md
  2. 2
      mesonbuild/backend/vs2010backend.py

@ -0,0 +1,4 @@
## backend_startup_project
`backend_startup_project` will no longer erase the last project in a VS
solution if it is not the specified project.

@ -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

Loading…
Cancel
Save