aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/compile.cxx')
-rw-r--r--build2/cc/compile.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 5133d64..9e720ed 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -3725,14 +3725,14 @@ namespace build2
// In Clang the module implementation's unit .pcm is special and
// must be "loaded".
//
- //if (md.type == translation_type::module_impl && i == ms.start)
+ if (md.type == translation_type::module_impl && i == ms.start)
s.insert (0, "-fmodule-file=");
- //else
- //{
- // s.insert (0, 1, '=');
- // s.insert (0, cast<string> (f.vars[c_module_name]));
- // s.insert (0, "-fmodule-file=");
- //}
+ else
+ {
+ s.insert (0, 1, '=');
+ s.insert (0, cast<string> (f.vars[c_module_name]));
+ s.insert (0, "-fmodule-file=");
+ }
break;
}
case compiler_id::msvc: