diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-30 11:51:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-30 11:56:01 +0200 |
commit | 909bbc79fd2dc1d3a36e3109ba32a22e162b2b7f (patch) | |
tree | 2f192433224b4887a58e0b22e715d91178e9a546 /build2/cc | |
parent | 44d0adb806b3238a79d71ecea53dce7ba6807d8e (diff) |
Switch to -fmodule-file=<name>=<file>, requires Clang 6.0/trunk
Diffstat (limited to 'build2/cc')
-rw-r--r-- | build2/cc/compile.cxx | 14 |
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: |