diff --git a/tools/meson_install_win_debug.py b/tools/meson_install_win_debug.py index 0474e35f1d..746d013306 100644 --- a/tools/meson_install_win_debug.py +++ b/tools/meson_install_win_debug.py @@ -18,7 +18,11 @@ if os.getenv("MESON_BUILD_ROOT", False): build_installed = json.load(f) for build_bin, installed_bin in build_installed.items(): if build_bin.endswith((".dll", ".exe")): + #Clang generates the .pdb on binary build dir pdb_debug = os.path.splitext(build_bin)[0] + ".pdb" + #GCC generates the .pdb on build root dir + if not os.path.isfile(pdb_debug): + pdb_debug = os.path.join(os.getenv("MESON_BUILD_ROOT"), os.path.splitext(os.path.basename(build_bin))[0] + ".pdb") install_dir = os.path.dirname(installed_bin) if os.path.isfile(pdb_debug): if not os.getenv("MESON_INSTALL_DRY_RUN"):