Bug 1227384 - Move LOCAL_INCLUDES and DEFINES to moz.build in js/src/. r=mshal

This commit is contained in:
Mike Hommey 2015-11-21 10:02:32 +09:00
Родитель ca5e376580
Коммит ac46182165
2 изменённых файлов: 7 добавлений и 12 удалений

Просмотреть файл

@ -12,18 +12,6 @@ ifneq ($(make_min_ver),$(firstword $(sort $(make_min_ver) $(MAKE_VERSION))))
$(error GNU Make $(make_min_ver) or higher is required)
endif
ifdef JS_HAS_CTYPES
ifdef MOZ_NATIVE_FFI
LOCAL_INCLUDES = $(MOZ_FFI_CFLAGS)
endif
# Windows needs this to be linked with a static library.
ifndef MOZ_NATIVE_FFI
DEFINES += -DFFI_BUILDING
endif
endif # JS_HAS_CTYPES
DASH_R = -r
# Define keyword generator before rules.mk, see bug 323979 comment 50

Просмотреть файл

@ -705,3 +705,10 @@ selfhosted.inputs = [
'builtin/TypedObject.js',
'builtin/WeakSet.js'
]
if CONFIG['JS_HAS_CTYPES']:
if CONFIG['MOZ_NATIVE_FFI']:
CXXFLAGS += CONFIG['MOZ_FFI_CFLAGS']
else:
# Windows needs this to be linked with a static library.
DEFINES['FFI_BUILDING'] = True