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:
@@ -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 ( )
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user