diff options
| author | Bodie Solomon <bodie@synapsegarden.net> | 2020-03-31 10:13:31 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-03-31 14:23:34 -0400 |
| commit | 9bb76f8ce0b36211e0ff1f502ec46aa5a0142cd0 (patch) | |
| tree | e88f6204cda7fd9d9a9a1b0ae1a608999005f0f8 /src/analyze.cpp | |
| parent | d34a3c66b36e3afc8ea7f275b449033fa7a1b4bc (diff) | |
| download | zig-9bb76f8ce0b36211e0ff1f502ec46aa5a0142cd0.tar.gz zig-9bb76f8ce0b36211e0ff1f502ec46aa5a0142cd0.zip | |
Use correct compiler flags in MSVC bootstrap builds of Zig
https://github.com/ziglang/zig/issues/4877
The CMake build of Zig from C++ uses hand-set compiler flags which are
not compatible with the Microsoft C/C++ Optimizing Compiler (cl.exe)
used by Visual Studio.
This commit attempts to conform them to match the Clang/GCC options
under MSVC builds.
Note that CL does not have a concept of C99 or "-O3", and may imply
other optimizations in "/O2" than are implied by Clang/GCC "-O3".
Visual Studio 2019 documentation for cl.exe's optimization options:
https://docs.microsoft.com/en-us/cpp/build/reference/o-options-optimize-code?view=vs-2019
Visual Studio 2019 doc for cl.exe's C++ standard options:
https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019
Diffstat (limited to 'src/analyze.cpp')
0 files changed, 0 insertions, 0 deletions
