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

Bugfix: quoted includes were not handled correctly in some cases.

[SVN r17067]
This commit is contained in:
Vladimir Prus
2003-01-28 15:40:25 +00:00
parent b67df40f13
commit 2ba321d252
10 changed files with 16 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ rule c-scanner ( includes * )
# Just propagate current scanner to includes, in a hope
# that includes do not change scanners.
for local a in $(angle)
for local a in $(angle) $(quoted)
{
scanner.install $(__name__) : $(a) : $(target) ;
}

View File

@@ -1 +1,2 @@
#include "c.h"

View File

View File

@@ -42,6 +42,12 @@ t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# included by "src/b.h". We had a bug: file included via "",
# like "b.h" is in this case was not scanned at all.
t.touch("src1/c.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.touch("b.h")
t.run_build_system()
t.expect_nothing_more()

Binary file not shown.

View File

@@ -1 +1,2 @@
#include "c.h"

View File

View File

@@ -42,6 +42,12 @@ t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# included by "src/b.h". We had a bug: file included via "",
# like "b.h" is in this case was not scanned at all.
t.touch("src1/c.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.touch("b.h")
t.run_build_system()
t.expect_nothing_more()

Binary file not shown.

View File

@@ -270,7 +270,7 @@ rule c-scanner ( includes * )
# Just propagate current scanner to includes, in a hope
# that includes do not change scanners.
for local a in $(angle)
for local a in $(angle) $(quoted)
{
scanner.install $(__name__) : $(a) : $(target) ;
}