From 1918c0d231f0c04b1a57c2fdf057b50c8aa7312b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 25 Apr 2018 22:25:55 +0300 Subject: Can combine D and C++ in a single target. Closes #3125. --- mesonbuild/compilers/cpp.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 4c48052..051f922 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -93,6 +93,9 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler): def get_option_link_args(self, options): return [] + def language_stdlib_only_link_flags(self): + return ['-lstdc++'] + class GnuCPPCompiler(GnuCompiler, CPPCompiler): def __init__(self, exelist, version, gcc_type, is_cross, exe_wrap, defines, **kwargs): @@ -134,6 +137,9 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler): def get_pch_use_args(self, pch_dir, header): return ['-fpch-preprocess', '-include', os.path.basename(header)] + def language_stdlib_only_link_flags(self): + return ['-lstdc++'] + class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler): def __init__(self, exelist, version, gcc_type, is_cross, exe_wrapper=None, defines=None, **kwargs): -- cgit v1.1