Gcc and clang can take assebmly files directly.

pull/15/head
Jussi Pakkanen 10 years ago
parent e69f691161
commit 1e12b87b93
  1. 6
      environment.py

@ -1019,6 +1019,9 @@ class GnuCCompiler(CCompiler):
def get_soname_args(self, shlib_name, path, soversion):
return get_gcc_soname_args(self.gcc_type, shlib_name, path, soversion)
def can_compile(self, filename):
return super().can_compile(filename) or filename.split('.')[-1] == 's' # Gcc can do asm, too.
class GnuObjCCompiler(ObjCCompiler):
std_warn_args = ['-Wall', '-Winvalid-pch']
@ -1093,6 +1096,9 @@ class ClangCCompiler(CCompiler):
def get_pch_suffix(self):
return 'pch'
def can_compile(self, filename):
return super().can_compile(filename) or filename.split('.')[-1] == 's' # Clang can do asm, too.
class GnuCPPCompiler(CPPCompiler):
std_warn_args = ['-Wall', '-Winvalid-pch']
# may need to separate the latter to extra_debug_args or something

Loading…
Cancel
Save