Ejemplo n.º 1
0
 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'])
Ejemplo n.º 2
0
 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'])
Ejemplo n.º 3
0
 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()])