mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Bugfix: path features in target requirement were
not translated.
* test/path_features.py: Fix a bug in test.
* new/targets.jam
(main-target-requirements): Bugfix.
[SVN r16579]
This commit is contained in:
@@ -569,7 +569,7 @@ rule main-target-requirements (
|
||||
local loc = [ project.attribute $(project) location ] ;
|
||||
local requirements = [ property.translate-paths $(specification) : $(loc) ] ;
|
||||
local project-requirements = [ project.attribute $(project) requirements ] ;
|
||||
requirements = [ property.refine $(project-requirements) : $(specification) ] ;
|
||||
requirements = [ property.refine $(project-requirements) : $(requirements) ] ;
|
||||
if $(requirements[1]) = "@error"
|
||||
{
|
||||
errors.error "Conflicting requirements for target:" $(requirements) ;
|
||||
|
||||
@@ -5,7 +5,10 @@ t = Tester()
|
||||
|
||||
t.write("project-root.jam", "import gcc ;")
|
||||
t.write("Jamfile", "lib a : a.cpp : <include>. ;")
|
||||
t.write("a.cpp", "void foo() {}")
|
||||
t.write("a.cpp", """
|
||||
#include <a.h>
|
||||
void foo() {}
|
||||
""")
|
||||
t.write("a.h", "")
|
||||
|
||||
t.write("d/Jamfile", "exe b : b.cpp ../a ; ")
|
||||
|
||||
@@ -569,7 +569,7 @@ rule main-target-requirements (
|
||||
local loc = [ project.attribute $(project) location ] ;
|
||||
local requirements = [ property.translate-paths $(specification) : $(loc) ] ;
|
||||
local project-requirements = [ project.attribute $(project) requirements ] ;
|
||||
requirements = [ property.refine $(project-requirements) : $(specification) ] ;
|
||||
requirements = [ property.refine $(project-requirements) : $(requirements) ] ;
|
||||
if $(requirements[1]) = "@error"
|
||||
{
|
||||
errors.error "Conflicting requirements for target:" $(requirements) ;
|
||||
|
||||
@@ -5,7 +5,10 @@ t = Tester()
|
||||
|
||||
t.write("project-root.jam", "import gcc ;")
|
||||
t.write("Jamfile", "lib a : a.cpp : <include>. ;")
|
||||
t.write("a.cpp", "void foo() {}")
|
||||
t.write("a.cpp", """
|
||||
#include <a.h>
|
||||
void foo() {}
|
||||
""")
|
||||
t.write("a.h", "")
|
||||
|
||||
t.write("d/Jamfile", "exe b : b.cpp ../a ; ")
|
||||
|
||||
Reference in New Issue
Block a user