From d3514286b136691279f104c92fe08dada1f042ab Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Jul 2019 15:45:05 +0200 Subject: Use .gcm extension for both modules and headers in GCC --- build2/cc/compile-rule.cxx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'build2') 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; } -- cgit v1.1