aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/compile-rule.cxx13
1 files changed, 1 insertions, 12 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index 41782b3..ef37c52 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -637,27 +637,16 @@ namespace build2
{
case compiler_type::gcc:
{
- // For some reason GCC uses a different extension for header unit
- // BMIs.
- //
- e += (ut == unit_type::module_iface ? "gcm" :
- ut == unit_type::module_header ? "gchm" :
- o);
+ e += (ut != unit_type::non_modular ? "gcm" : o);
break;
}
case compiler_type::clang:
{
- // Clang seems to be using the same extension for both header and
- // module BMIs.
- //
e += (ut != unit_type::non_modular ? "pcm" : o);
break;
}
case compiler_type::msvc:
{
- // MSVC doesn't have header unit support yet so for now we assume
- // it will be the same.
- //
e += (ut != unit_type::non_modular ? "ifc" : o);
break;
}