зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1227384 - Move LOCAL_INCLUDES and DEFINES to moz.build in js/src/. r=mshal
This commit is contained in:
Родитель
ca5e376580
Коммит
ac46182165
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче