diff options
Diffstat (limited to 'compilers.py')
-rw-r--r-- | compilers.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compilers.py b/compilers.py index 7100113..7561883 100644 --- a/compilers.py +++ b/compilers.py @@ -395,6 +395,12 @@ void bar() { ''' return self.compiles(templ % (prefix, typename, membername)) + def thread_flags(self): + return ['-pthread'] + + def thread_link_flags(self): + return ['-pthread'] + class CPPCompiler(CCompiler): def __init__(self, exelist, version, is_cross, exe_wrap): CCompiler.__init__(self, exelist, version, is_cross, exe_wrap) @@ -943,6 +949,13 @@ class VisualStudioCCompiler(CCompiler): def build_rpath_args(self, build_dir, rpath_paths, install_rpath): return [] + # FIXME, no idea what these should be. + def thread_flags(self): + return [] + + def thread_link_flags(self): + return [] + class VisualStudioCPPCompiler(VisualStudioCCompiler): def __init__(self, exelist, version, is_cross, exe_wrap): VisualStudioCCompiler.__init__(self, exelist, version, is_cross, exe_wrap) |