From 5974cab56148a18628bfb423189e016ade2d40f9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 31 Aug 2015 13:45:57 +0200 Subject: Rework scoping logic Now the src directory is entered into the scope map and points to the same scope as out. This means that targets that are in src, not out (e.g., source files) will "see" rules, variables, etc. This becomes important when we try, for example, to install a source file (say, a header) from src: we need the rule as well as the install.* variables. --- tests/import/installed/build/bootstrap.build | 1 + tests/import/installed/buildfile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/import/installed') diff --git a/tests/import/installed/build/bootstrap.build b/tests/import/installed/build/bootstrap.build index 97fd11f..2af1e60 100644 --- a/tests/import/installed/build/bootstrap.build +++ b/tests/import/installed/build/bootstrap.build @@ -1,3 +1,4 @@ project = import-installed amalgamation = # Disabled. using config +using test diff --git a/tests/import/installed/buildfile b/tests/import/installed/buildfile index 276de36..abdc151 100644 --- a/tests/import/installed/buildfile +++ b/tests/import/installed/buildfile @@ -5,5 +5,9 @@ cxx.ext = cxx import libs += lib{z} -#exe{driver}: cxx{driver} $libs -lib{driver}: cxx{driver} $libs +#lib{driver}: cxx{driver} $libs + +exe{driver}: cxx{driver} $libs +exe{driver}: test = true + + -- cgit v1.1