Switch "cl /?" to "cl /help" in MSVC scripts for platform detection
Michael Paquier <michael@paquier.xyz>
Switch "cl /?" to "cl /help" in MSVC scripts for platform detection "cl /?" produces a different output if run on a real or a virtual drive (this can be set with a simple subst command), causing an error in the MSVC scripts if building on a virtual drive because the platform to use cannot be detected. "cl /help", on the contrary, produces a consistent output if used on a real or virtual drive. Changing to "/help" allows the compilation to work with a virtual drive as long as the top of the code repository is part of the drive, without impacting the build on real drives. Reported-by: Robert Grange Author: Juan José Santamaría Flecha Discussion: https://postgr.es/m/16825-c4f104bcebc67034@postgresql.org
Files
| Path | Change | +/− |
|---|---|---|
| src/tools/msvc/Solution.pm | modified | +1 −1 |
Discussion
- BUG #16825: When building on Windows, cl /? retrun 'x64' not AMD64 and the build does not create x64 environment 11 messages · 2021-01-15 → 2021-01-23