From 909bbc79fd2dc1d3a36e3109ba32a22e162b2b7f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 30 Aug 2017 11:51:45 +0200 Subject: Switch to -fmodule-file==, requires Clang 6.0/trunk --- build2/cc/compile.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build2/cc/compile.cxx') 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 (f.vars[c_module_name])); - // s.insert (0, "-fmodule-file="); - //} + else + { + s.insert (0, 1, '='); + s.insert (0, cast (f.vars[c_module_name])); + s.insert (0, "-fmodule-file="); + } break; } case compiler_id::msvc: -- cgit v1.1