def test_flags_include_pch(self): p = self.Path('/path/to/header.hpp') self.assertEqual( self.compiler.flags( opts.option_list( opts.pch( MsvcPrecompiledHeader(p, p, 'header', 'native', 'c++')))), ['/Yuheader', '/MD'])
def test_flags_include_pch(self): p = Path('/path/to/header.hpp') self.assertEqual( self.compiler.flags( opts.option_list( opts.pch( file_types.MsvcPrecompiledHeader( p, None, 'header', 'native')))), ['/Yuheader'])
def test_flags_include_pch(self): p = self.Path('/path/to/header.hpp') self.assertEqual( self.compiler.flags( opts.option_list(opts.pch(PrecompiledHeader(p, 'c++')))), ['-include', p.stripext()])