diff options
Diffstat (limited to 'build2')
-rw-r--r-- | build2/cc/compile.cxx | 7 | ||||
-rw-r--r-- | build2/cxx/init.cxx | 4 |
2 files changed, 8 insertions, 3 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index 47953ee..3ae1e94 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -3657,12 +3657,13 @@ namespace build2 { if (p.is_a (*x_mod)) // Got to be there. { - fail (relative (src)) << "failed to correctly guess module " - << "name from " << p << + fail (relative (src)) + << "failed to correctly guess module name from " << p << info << "guessed: " << in << info << "actual: " << mn << info << "consider adjusting module interface file names or" << - info << "consider specifying module name with cc.module_name"; + info << "consider specifying module name with " << x + << ".module_name"; } } } diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx index 9870d84..91e37e7 100644 --- a/build2/cxx/init.cxx +++ b/build2/cxx/init.cxx @@ -429,6 +429,10 @@ namespace build2 v.insert<string> ("cxx.target.class") }; + // Alias some cc. variables as cxx. + // + v.insert_alias (d.c_module_name, "cxx.module_name"); + assert (mod == nullptr); config_module* m (new config_module (move (d))); mod.reset (m); |