microsoft / vswhere

Locate Visual Studio 2017 and newer installations
MIT License
921 stars 97 forks source link

Prepare vswhere and vswhere.lib to be Vulcan ready #289

Closed skylarnam closed 1 year ago

skylarnam commented 1 year ago

We have received multiple APISCan violations on Azure DevOps, and one of the files that were flagged was vswhere.exe. In order to fix the improperfileformat issues, we need to make sure to create Vulcan ready files.

For C/C++ and Managed C++ Modules, we should perform a couple of actions in order to make files Vulcan-ready:

  1. We need to pass the /Zi flag for all native modules (except DLLs that only contain resources) when compiling to produce a separate PDB file that contains all the symbolic debugging information for use with the debugger.
  2. We need to pass the /profile flag to produce an output file when linking that can be used with the Performance Tools profiler.

The PR addresses the two actions and adds the appropriate compiler and linker flags.