handle i, ii suffixes in emcc #3365
This commit is contained in:
Родитель
882e78cdfe
Коммит
1a5c056158
6
emcc
6
emcc
|
@ -55,9 +55,9 @@ from tools.response_file import read_response_file
|
|||
|
||||
# endings = dot + a suffix, safe to test by filename.endswith(endings)
|
||||
C_ENDINGS = ('.c', '.C')
|
||||
CXX_ENDINGS = ('.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++')
|
||||
OBJC_ENDINGS = ('.m',)
|
||||
OBJCXX_ENDINGS = ('.mm',)
|
||||
CXX_ENDINGS = ('.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.i', '.ii')
|
||||
OBJC_ENDINGS = ('.m', '.mi')
|
||||
OBJCXX_ENDINGS = ('.mm', '.mii')
|
||||
SOURCE_ENDINGS = C_ENDINGS + CXX_ENDINGS + OBJC_ENDINGS + OBJCXX_ENDINGS
|
||||
BITCODE_ENDINGS = ('.bc', '.o', '.obj')
|
||||
DYNAMICLIB_ENDINGS = ('.dylib', '.so') # Windows .dll suffix is not included in this list, since those are never linked to directly on the command line.
|
||||
|
|
|
@ -482,7 +482,8 @@ f.close()
|
|||
assert process.returncode is 0, 'User should be able to specify custom -std= on the command line!'
|
||||
|
||||
def test_odd_suffixes(self):
|
||||
for suffix in ['CPP', 'c++', 'C++', 'cxx', 'CXX', 'cc', 'CC']:
|
||||
for suffix in ['CPP', 'c++', 'C++', 'cxx', 'CXX', 'cc', 'CC', 'i', 'ii']:
|
||||
self.clear()
|
||||
print suffix
|
||||
shutil.copyfile(path_from_root('tests', 'hello_world.cpp'), 'test.' + suffix)
|
||||
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'test.' + suffix)]).communicate()
|
||||
|
|
Загрузка…
Ссылка в новой задаче