aboutsummaryrefslogtreecommitdiff
path: root/build/config
diff options
context:
space:
mode:
Diffstat (limited to 'build/config')
-rw-r--r--build/config/utility8
1 files changed, 5 insertions, 3 deletions
diff --git a/build/config/utility b/build/config/utility
index 403a91e..e59f0e5 100644
--- a/build/config/utility
+++ b/build/config/utility
@@ -53,11 +53,13 @@ namespace build
{
for (const name& n: val.template as<const list_value&> ())
{
- if (!n.simple ())
+ if (n.simple ())
+ args.push_back (n.value.c_str ());
+ else if (n.directory ())
+ args.push_back (n.dir.string ().c_str ());
+ else
fail << "expected option instead of " << n <<
info << "in variable " << var;
-
- args.push_back (n.value.c_str ());
}
}
}