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:
@@ -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) ;
|
||||
}
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
|
||||
#include "c.h"
|
||||
|
||||
0
test/dependency-test/src1/c.h
Normal file
0
test/dependency-test/src1/c.h
Normal 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.
@@ -1 +1,2 @@
|
||||
|
||||
#include "c.h"
|
||||
|
||||
0
v2/test/dependency-test/src1/c.h
Normal file
0
v2/test/dependency-test/src1/c.h
Normal 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.
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user