2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-12 12:02:24 +00:00

Fix up bison's handling of yy sources. Bison produces hpp file when input

has yy extension. Up till now, V2 though it produces h file, which means
that if any source includes hpp file, V2 could try to compile it before
generating the hpp. The compilation fails.

* new/builtin.jam
  Make HPP a separate type.

* tools/bison.jam
  Note that YY is converted to HPP, not H.


[SVN r19847]
This commit is contained in:
Vladimir Prus
2003-08-29 07:01:13 +00:00
parent 8c2aa80007
commit ec6a3b1e25
2 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ feature.feature bison.prefix : : free ;
type.register Y : y ;
type.register YY : yy ;
generators.register-standard bison.bison : Y : C H ;
generators.register-standard bison.bison : YY : CPP H ;
generators.register-standard bison.bison : YY : CPP HPP ;
rule init ( )
{

View File

@@ -379,7 +379,8 @@ scanner.register c-scanner : include ;
type.set-scanner CPP : c-scanner ;
type.register H : h hpp ;
type.register H : h ;
type.register HPP : hpp : H ;
type.register C : c ;
class lib-target-class : basic-target