mirror of
https://github.com/Zaarrg/stremio-community-v5.git
synced 2026-04-20 16:42:02 +00:00
Added --debug to build release with debug enabled
This commit is contained in:
parent
d1b7990284
commit
71e4d246f3
1 changed files with 2 additions and 1 deletions
|
|
@ -48,6 +48,7 @@ const VCPKG_CMAKE = 'C:/bin/vcpkg/scripts/buildsystems/vcpkg.cmake';
|
|||
const args = process.argv.slice(2);
|
||||
const buildInstaller = args.includes('--installer');
|
||||
const buildPortable = args.includes('--portable');
|
||||
const debugBuild = args.includes('--debug');
|
||||
|
||||
// 3) Run CMake + Ninja in ../cmake-build-release (64-bit)
|
||||
if (!fs.existsSync(BUILD_DIR)) {
|
||||
|
|
@ -57,7 +58,7 @@ const VCPKG_CMAKE = 'C:/bin/vcpkg/scripts/buildsystems/vcpkg.cmake';
|
|||
console.log('\n=== Running CMake in cmake-build-release ===');
|
||||
process.chdir(BUILD_DIR);
|
||||
execSync(
|
||||
`cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=${VCPKG_CMAKE} -DVCPKG_TARGET_TRIPLET=${VCPKG_TRIPLET} ..`,
|
||||
`cmake -G Ninja -DCMAKE_BUILD_TYPE=${debugBuild ? "Debug" : "Release"} -DCMAKE_TOOLCHAIN_FILE=${VCPKG_CMAKE} -DVCPKG_TARGET_TRIPLET=${VCPKG_TRIPLET} ..`,
|
||||
{ stdio: 'inherit' }
|
||||
);
|
||||
console.log('=== Running Ninja in cmake-build-release ===');
|
||||
|
|
|
|||
Loading…
Reference in a new issue