Some clang fixes.

pull/15/head
Jussi Pakkanen 11 years ago
parent 1f58434957
commit 1e83db2ff3
  1. 8
      environment.py

@ -600,6 +600,9 @@ class ClangCCompiler(CCompiler):
def get_pch_suffix(self):
return 'pch'
def build_rpath_args(self, build_dir, rpath_paths):
return ['-Wl,-rpath,' + ':'.join([os.path.join(build_dir, p) for p in rpath_paths])]
class GnuCPPCompiler(CPPCompiler):
std_warn_flags = ['-Wall', '-Winvalid-pch']
std_opt_flags = ['-O2']
@ -648,6 +651,11 @@ class ClangCPPCompiler(CPPCompiler):
def get_pch_suffix(self):
return 'pch'
def build_rpath_args(self, build_dir, rpath_paths):
if len(rpath_paths) == 0:
return []
return ['-Wl,-rpath,' + ':'.join([os.path.join(build_dir, p) for p in rpath_paths])]
class VisualStudioLinker():
always_flags = ['/NOLOGO']
def __init__(self, exelist):

Loading…
Cancel
Save