parent
43129a11ed
commit
063b74ebba
|
@ -577,7 +577,7 @@ class VisualStudioCPPCompiler(CPP11AsCPP14Mixin, VisualStudioLikeCPPCompilerMixi
|
|||
is_cross: bool, info: 'MachineInfo', exe_wrap, target, **kwargs):
|
||||
CPPCompiler.__init__(self, exelist, version, for_machine, is_cross, info, exe_wrap, **kwargs)
|
||||
MSVCCompiler.__init__(self, target)
|
||||
self.base_options = ['b_pch', 'b_vscrt'] # FIXME add lto, pgo and the like
|
||||
self.base_options = ['b_pch', 'b_vscrt', 'b_ndebug'] # FIXME add lto, pgo and the like
|
||||
self.id = 'msvc'
|
||||
|
||||
def get_options(self):
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
int main() {
|
||||
#ifdef NDEBUG
|
||||
// NDEBUG is defined
|
||||
return 0;
|
||||
#else
|
||||
// NDEBUG is not defined
|
||||
return 1;
|
||||
#endif
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
project('msvc_ndebug', 'cpp',
|
||||
default_options : [ 'b_ndebug=true' ]
|
||||
)
|
||||
|
||||
exe = executable('exe', 'main.cpp')
|
||||
|
||||
test('ndebug', exe)
|
Loading…
Reference in New Issue