Commit Graph

8 Commits

Author SHA1 Message Date
Eli Schwartz 04c728a126 compilers/c++: Add MSVC option to make the __cplusplus define accurate
Otherwise it always returns the value for c++98, starting with MSVC 2017
15.7 or later. Earlier versions are not affected by this mis-feature.

See: https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-160

This was originally applied as 0b97d58548
but later reverted because it made the CI red. Try it again, now.

Original-patch-by: Dylan Baker <dylan@pnwbakers.com>
Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
2022-05-08 14:40:54 -04:00
Jussi Pakkanen a90d2925dd Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"
This reverts commit 0b97d58548.
2021-08-15 13:18:35 +03:00
Dylan Baker 0b97d58548 compilers/c++: Add MSVC option to make the __cplusplus define accurate
Otherwise it always returns the value for c++98, starting with MSVC 2017
15.7 or later. Earlier versions are not affected by this mis-feature
2021-08-11 21:54:16 +03:00
Michael Hirsch, Ph.D acee448fb9 ci/test: unused args for Windows 2019-12-04 10:59:40 +02:00
Jussi Pakkanen 89aa4e2233 C++ is now called cpp rather than cxx. 2013-06-02 22:31:10 +03:00
Jussi Pakkanen d4284aae89 Renamed add_test to test. 2013-06-02 13:18:15 +03:00
Jussi Pakkanen 43ca3e2546 Fixed Windows garbage line endings. 2013-04-19 18:57:50 +03:00
Jussi Pakkanen 15ff1e4e48 Added test case for Windows cpp building. 2013-04-19 18:31:18 +03:00