]> granicus.if.org Git - php/commitdiff
prefer symbols read from the bin to those matching the naming scheme
authorAnatol Belski <ab@php.net>
Sun, 30 Oct 2016 20:22:24 +0000 (21:22 +0100)
committerAnatol Belski <ab@php.net>
Sun, 30 Oct 2016 20:26:19 +0000 (21:26 +0100)
win32/build/confutils.js

index 97090f53324989e1be8efece117cbf7069ac89af..0bb1f27818474bad46a717ebd37d5cec083b35d4 100644 (file)
@@ -655,7 +655,6 @@ function copy_dep_pdb_into_build_dir(libpath)
        var names = [];
 
        var libname = FSO.GetFileName(libpath);
-       names.push(libname.replace(new RegExp("\\.lib$"), ".pdb"));
 
        /* Within same .lib, everything should be bound to the same .pdb. No check
                for every single object in the static libs. */
@@ -677,6 +676,10 @@ function copy_dep_pdb_into_build_dir(libpath)
                }
        }
 
+       /* This is rather a fallback, if the bin has no debug section or
+               something went wrong with parsing. */
+       names.push(libname.replace(new RegExp("\\.lib$"), ".pdb"));
+
        for (var k = 0; k < names.length; k++) {
                var pdbname = names[k];