From ec6a3b1e258406ea6246ee6553a9cc356c9dca3a Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 29 Aug 2003 07:01:13 +0000 Subject: [PATCH] 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] --- src/tools/bison.jam | 2 +- src/tools/builtin.jam | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/bison.jam b/src/tools/bison.jam index 14f93c9b6..4e6c8de9f 100644 --- a/src/tools/bison.jam +++ b/src/tools/bison.jam @@ -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 ( ) { diff --git a/src/tools/builtin.jam b/src/tools/builtin.jam index cd2d2bbdc..4b931efbf 100644 --- a/src/tools/builtin.jam +++ b/src/tools/builtin.jam @@ -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