From ca66f517e9009cd9743af0d6380d16fe3a1a63df Mon Sep 17 00:00:00 2001 From: Ed_ Date: Wed, 20 Mar 2024 20:50:46 -0400 Subject: [PATCH] update build script to remove pdbs before building (msvc issues) Also update ignores to ignore log zips --- .gitignore | 1 + scripts/build.ps1 | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.gitignore b/.gitignore index 0d1d36d..9fc05d3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build/** # thirdparty/** logs .ark +logs*.zip diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 1291a5c..9787847 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -150,6 +150,10 @@ push-location $path_root $module_dll = join-path $path_build ( $project_name + '.dll' ) $pdb = join-path $path_build ( $project_name + '.pdb' ) + if (test-path $pdb) { + remove-item $pdb + } + $linker_args = "" $linker_args += ( $flag_msvc_link_disable_dynamic_base + ' ' ) $linker_args += ( $flag_msvc_link_fixed_base_address + ' ' ) @@ -230,6 +234,10 @@ push-location $path_root return } + if (test-path $pdb) { + remove-item $pdb + } + write-host 'Building Host Module' $linker_args = "" # $linker_args += ( $flag_msvc_link_disable_dynamic_base + ' ' )