aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-17 16:09:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-17 16:09:34 +0200
commit63c480abe7755c3c957d5c219a5e0ed3e9f881aa (patch)
treeb6879876f356b040220aae43cf86a4d333e9e0aa /build2/cc
parent9740d9e777c9d19482052a37ad3a6ab25112d6d6 (diff)
Add support for specifying individual paths of imported targets
The new config.import.* variable format is: config.import.<proj>.<name>[.<type>] For example: b config.import.build2.b=/opt/build2/bin/b b config.import.build2.b.exe=b-boot
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/compile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 74a9422..f182408 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -922,8 +922,7 @@ namespace build2
//
dir_path d (f.directory ());
string n (f.leaf ().base ().string ());
- const char* es (f.extension ());
- const string* e (&extension_pool.find (es != nullptr ? es : ""));
+ const string* e (&extension_pool.find (f.extension ()));
// Determine the target type.
//