Revert "Updated to include build type and variant in binary names, so they don't need to be rebuilt everytime the configuration is changed."

Modifying the suffix variables broke the library file detection, at least on Windows.

This reverts commit e6e7dbe642.
This commit is contained in:
Patrick Wuttke
2025-03-14 09:48:30 +01:00
parent e6e7dbe642
commit 3a3c79d240
5 changed files with 22 additions and 38 deletions

View File

@@ -6,7 +6,7 @@
"name": "Debug {{ executable.name }}",
"type": "cppvsdbg",
"request": "launch",
"program": "{{ executable.filename(build_type) | escape_path }}",
"program": "{{ executable.filename | escape_path }}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",

View File

@@ -9,7 +9,7 @@
{
"label": "{{ executable.name }} {{ build_type_name }}",
"type": "shell",
"command": "{{ scons_exe | escape_path }} -j{{ nproc }} --build_type={{ build_type }} --unity=disable {{ executable.filename(build_type) | escape_path }} compile_commands.json",
"command": "{{ scons_exe | escape_path }} -j{{ nproc }} --build_type={{ build_type }} --unity=disable {{ executable.filename | escape_path }} compile_commands.json",
"options": {
"cwd": "${workspaceFolder}"
},
@@ -22,7 +22,7 @@
{
"label": "{{ executable.name }} {{ build_type_name }} Clean",
"type": "shell",
"command": "{{ scons_exe | escape_path }} --build_type={{ build_type }} --unity=disable {{ executable.filename(build_type) | escape_path }} -c",
"command": "{{ scons_exe | escape_path }} --build_type={{ build_type }} --unity=disable {{ executable.filename | escape_path }} -c",
"options": {
"cwd": "${workspaceFolder}"
},
@@ -40,7 +40,7 @@
{
"label": "{{ library.name }} {{ build_type_name }}",
"type": "shell",
"command": "{{ scons_exe | escape_path }} -j{{ nproc }} --build_type={{ build_type }} --unity=disable {{ library.filename(build_type) | escape_path }} compile_commands.json",
"command": "{{ scons_exe | escape_path }} -j{{ nproc }} --build_type={{ build_type }} --unity=disable {{ library.filename | escape_path }} compile_commands.json",
"options": {
"cwd": "${workspaceFolder}"
},
@@ -53,7 +53,7 @@
{
"label": "{{ library.name }} {{ build_type_name }} Clean",
"type": "shell",
"command": "{{ scons_exe | escape_path }} --build_type={{ build_type }} --unity=disable {{ library.filename(build_type) | escape_path }} -c",
"command": "{{ scons_exe | escape_path }} --build_type={{ build_type }} --unity=disable {{ library.filename | escape_path }} -c",
"options": {
"cwd": "${workspaceFolder}"
},