зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336569 Define SYMBOL_UNDERSCORE for ffi in the mingw build r=glandium
MozReview-Commit-ID: 6BiTcohFDPk --HG-- extra : rebase_source : d783f2950009d07ea45cdcc693771f4141df6ee9
This commit is contained in:
Родитель
aa291c2796
Коммит
8d3b0051f6
|
@ -763,6 +763,8 @@ def compiler(language, host_or_target, c_compiler=None, other_compiler=None,
|
|||
# Set CC_TYPE/CC_VERSION/HOST_CC_TYPE/HOST_CC_VERSION to allow
|
||||
# old-configure to do some of its still existing checks.
|
||||
if language == 'C':
|
||||
set_config(
|
||||
'%s_TYPE' % var, delayed_getattr(valid_compiler, 'type'))
|
||||
add_old_configure_assignment(
|
||||
'%s_TYPE' % var, delayed_getattr(valid_compiler, 'type'))
|
||||
add_old_configure_assignment(
|
||||
|
|
|
@ -85,6 +85,9 @@ else:
|
|||
elif CONFIG['FFI_TARGET'] == 'X86_64':
|
||||
ffi_srcs = ('ffi64.c', 'unix64.S', 'ffi.c', 'sysv.S')
|
||||
elif CONFIG['FFI_TARGET'] == 'X86_WIN32':
|
||||
# MinGW Build for 32 bit
|
||||
if CONFIG['CC_TYPE'] == 'gcc':
|
||||
DEFINES['SYMBOL_UNDERSCORE'] = True
|
||||
ffi_srcs = ('ffi.c', 'win32.S')
|
||||
elif CONFIG['FFI_TARGET'] == 'X86_WIN64':
|
||||
ffi_srcs = ('ffi.c', 'win64.S')
|
||||
|
|
Загрузка…
Ссылка в новой задаче