From f749aab34924a61710aa28a33ad223e866aa5843 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Feb 2020 14:56:33 +0200 Subject: Work around bug in Clang 10 targeting MSVC in c++2a (LLVM bug #44956) --- libbuild2/cc/module.cxx | 2 +- libbuild2/cc/module.hxx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc') diff --git a/libbuild2/cc/module.cxx b/libbuild2/cc/module.cxx index c74f26d..d8365e4 100644 --- a/libbuild2/cc/module.cxx +++ b/libbuild2/cc/module.cxx @@ -384,7 +384,7 @@ namespace build2 // Translate x_std value (if any) to the compiler option(s) (if any). // - tstd = translate_std (xi, rs, v); + tstd = translate_std (xi, tt, rs, v); } // config.x.translatable_header diff --git a/libbuild2/cc/module.hxx b/libbuild2/cc/module.hxx index d496779..4eca976 100644 --- a/libbuild2/cc/module.hxx +++ b/libbuild2/cc/module.hxx @@ -48,7 +48,10 @@ namespace build2 // root scope. // virtual strings - translate_std (const compiler_info&, scope&, const string*) const = 0; + translate_std (const compiler_info&, + const target_triplet&, + scope&, + const string*) const = 0; strings tstd; -- cgit v1.1