Procházet zdrojové kódy

Implement precompiled headers on gcc and improve same on msvc.
Notable changes:
1. There's no need to cast header to the PCHHEADER type.
2. There are two separate type "C_PCH" and "CPP_PCH", that
use C and C++ compilation respectively.

Most of the patch sumbitted by Ilya Sokolov.

tools/
* builtin.jam (class dummy-generator): New.
* gcc.jam: Override extension of the PCH type.
(class gcc-pch-generator): New.
Register generators for C_PCH and CPP_PCH.
(compile.c++.pch, compile.c.pch): New.
* msvc.jam (class msvc-pch-generator): New.
Register generators for C_PCH and CPP_PCH.
* pch.jam: Remove 'PCHHEADER' type.
(pch-generator): Fail unlress it's used at top-level
generator.
Register catch-all produce-nothing generators for PCH-less
toolsets.


[SVN r35508]

Vladimir Prus před 19 roky
rodič
revize
462d52a252
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      tools/build

+ 1 - 1
tools/build

@@ -1 +1 @@
-Subproject commit f76acdeb4252ccd8fa4a2c1cfc94fef39a8b70d8
+Subproject commit c9f08718a94a0304888bad7994d63f9eb37cb337

粤ICP备19079148号