aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-24 14:56:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-24 14:56:33 +0200
commitf749aab34924a61710aa28a33ad223e866aa5843 (patch)
treeff86e4693725ebbe44ffe7707839763943a7cb37 /libbuild2/cc
parent7f0f102d19b3ae41d5fee2306933f46d9f0ccd7b (diff)
Work around bug in Clang 10 targeting MSVC in c++2a (LLVM bug #44956)
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/module.cxx2
-rw-r--r--libbuild2/cc/module.hxx5
2 files changed, 5 insertions, 2 deletions
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;