示例#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'])
示例#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'])
示例#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()])