diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-01 15:37:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-01 15:37:04 +0200 |
commit | 74212589a797ca75e55f92a522e198915c0dbaf6 (patch) | |
tree | 6e16ed2ed816c66a0c3edef74c1f1e050fa0e272 /build/context.cxx | |
parent | 10fd2aface4486fc7f873dd2b54a1c2073c0b434 (diff) |
Use 'extension' variable to resolve extension for file{}
We now also check target type/pattern-specific variables. So the new
usage is:
cli{*}: extension = cli
Diffstat (limited to 'build/context.cxx')
-rw-r--r-- | build/context.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/context.cxx b/build/context.cxx index a20a7e2..699cc3c 100644 --- a/build/context.cxx +++ b/build/context.cxx @@ -74,6 +74,8 @@ namespace build // variable_pool.find ("subprojects", nullptr, '='); + variable_pool.find ("extension", string_type); + // Create global scope. For Win32 this is not a "real" root path. // On POSIX, however, this is a real path. See the comment in // <build/path-map> for details. |