aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-07-26 15:45:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-07-26 15:45:05 +0200
commitd3514286b136691279f104c92fe08dada1f042ab (patch)
tree744fe3e3b4167db56d18caa017d16cd536292b58
parentf5c3e393d8013927fa6dba3ecb2507333b5b307c (diff)
Use .gcm extension for both modules and headers in GCC
-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;
}