This reverts commit 0b97d58548
.
pull/9121/head
parent
00bfbcbfa2
commit
a90d2925dd
6 changed files with 2 additions and 40 deletions
@ -1,7 +0,0 @@ |
||||
## MSVC now sets the __cplusplus #define accurately |
||||
|
||||
For reasons, MSVC will always return `199711L` for `__cplusplus`, even when a |
||||
newer c++ standard is explicitly requested, unless you pass a specific option to |
||||
the compiler for MSVC 2017 15.7 and newer. Older versions are unaffected by |
||||
this. Meson now always sets the option if it is available, as it is unlikley |
||||
that users want the default behavior. |
@ -1,7 +0,0 @@ |
||||
int main() { |
||||
#if __cplusplus == 199711L |
||||
return 1; |
||||
#else |
||||
return 0; |
||||
#endif |
||||
} |
@ -1,14 +0,0 @@ |
||||
project('msvc __cplusplus', 'cpp', default_options : ['cpp_std=c++14']) |
||||
|
||||
cpp = meson.get_compiler('cpp') |
||||
|
||||
if cpp.get_id() != 'msvc' |
||||
error('MESON_SKIP_TEST: test is only relavent for msvc') |
||||
elif meson.project_version().version_compare('< 15.7') |
||||
error('MESON_SKIP_TEST: test is only relavent for msvc versions >= 15.7') |
||||
endif |
||||
|
||||
test( |
||||
'main', |
||||
executable('main', 'main.cpp'), |
||||
) |
@ -1,4 +1,4 @@ |
||||
project('wincpp', 'cpp', default_options : ['cpp_std=c++14']) |
||||
project('wincpp', 'cpp') |
||||
|
||||
exe = executable('prog', 'prog.cpp') |
||||
test('wincpp', exe) |
||||
|
Loading…
Reference in new issue