accept .lo suffixes as representing bitcode, these are PIC object files used e.g. in new zlib #3470
This commit is contained in:
Родитель
2643bd9513
Коммит
26c4b46c96
2
emcc
2
emcc
|
@ -59,7 +59,7 @@ CXX_ENDINGS = ('.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.CC', '.C++', '.i
|
|||
OBJC_ENDINGS = ('.m', '.mi')
|
||||
OBJCXX_ENDINGS = ('.mm', '.mii')
|
||||
SOURCE_ENDINGS = C_ENDINGS + CXX_ENDINGS + OBJC_ENDINGS + OBJCXX_ENDINGS
|
||||
BITCODE_ENDINGS = ('.bc', '.o', '.obj')
|
||||
BITCODE_ENDINGS = ('.bc', '.o', '.obj', '.lo')
|
||||
DYNAMICLIB_ENDINGS = ('.dylib', '.so') # Windows .dll suffix is not included in this list, since those are never linked to directly on the command line.
|
||||
STATICLIB_ENDINGS = ('.a',)
|
||||
ASSEMBLY_ENDINGS = ('.ll',)
|
||||
|
|
|
@ -495,6 +495,13 @@ f.close()
|
|||
Popen([PYTHON, EMCC, os.path.join(self.get_dir(), 'test.' + suffix)]).communicate()
|
||||
self.assertContained('hello, world!', run_js(os.path.join(self.get_dir(), 'a.out.js')))
|
||||
|
||||
for suffix in ['lo']:
|
||||
self.clear()
|
||||
print suffix
|
||||
Popen([PYTHON, EMCC, path_from_root('tests', 'hello_world.c'), '-o', 'binary.' + suffix]).communicate()
|
||||
Popen([PYTHON, EMCC, 'binary.' + suffix]).communicate()
|
||||
self.assertContained('hello, world!', run_js(os.path.join(self.get_dir(), 'a.out.js')))
|
||||
|
||||
def test_catch_undef(self):
|
||||
open(os.path.join(self.get_dir(), 'test.cpp'), 'w').write(r'''
|
||||
#include <vector>
|
||||
|
|
Загрузка…
Ссылка в новой задаче