diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-07 12:06:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-12-07 12:06:59 +0200 |
commit | a89f1e4f4efd291beedea03c65c8185b7d0df20e (patch) | |
tree | d06b2cb81720ae0c6cc877c2c67201838a10b63a /build2/context.cxx | |
parent | c2da5df68610a0070575212bfee67c730ab39128 (diff) |
Distinguish between "fixed" and "default" target extensions
This fixes wrong merging of, say, file{README} and file{README.MySQL}
(in libmysqlclient).
Diffstat (limited to 'build2/context.cxx')
-rw-r--r-- | build2/context.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build2/context.cxx b/build2/context.cxx index b359d8f..b12920c 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -339,6 +339,8 @@ namespace build2 const variable* var_clean; + const char var_extension[10] = "extension"; + const string* current_mname; const string* current_oname; @@ -413,7 +415,7 @@ namespace build2 // Target extension. // - vp.insert<string> ("extension", variable_visibility::target); + vp.insert<string> (var_extension, variable_visibility::target); gs.assign<dir_path> ("build.work") = work; gs.assign<dir_path> ("build.home") = home; |