зеркало из https://github.com/mozilla/gecko-dev.git
bug 530093 - allow building with VC10. configure+build system changes. r=bsmedberg
This commit is contained in:
Родитель
12d7421c97
Коммит
2dae1cece4
|
@ -73,13 +73,18 @@ REDIST_FILES = \
|
|||
$(NULL)
|
||||
endif
|
||||
|
||||
ifeq (1600,$(_MSC_VER))
|
||||
REDIST_FILES = \
|
||||
msvcp100.dll \
|
||||
msvcr100.dll \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
ifdef REDIST_FILES
|
||||
libs::
|
||||
mkdir -p $(FINAL_TARGET)
|
||||
for file in $(REDIST_FILES) ; do \
|
||||
install --preserve-timestamps "$(WIN32_REDIST_DIR)"/$$file $(FINAL_TARGET) ; \
|
||||
done
|
||||
install --preserve-timestamps $(foreach f,$(REDIST_FILES),"$(WIN32_REDIST_DIR)"/$(f)) $(FINAL_TARGET)
|
||||
endif
|
||||
|
||||
|
|
|
@ -255,7 +255,7 @@ endif
|
|||
ifdef MOZ_DEBUG_SYMBOLS
|
||||
OS_CXXFLAGS += -Zi -UDEBUG -DNDEBUG
|
||||
OS_CFLAGS += -Zi -UDEBUG -DNDEBUG
|
||||
OS_LDFLAGS += -DEBUG -OPT:REF -OPT:nowin98
|
||||
OS_LDFLAGS += -DEBUG -OPT:REF
|
||||
endif
|
||||
|
||||
ifdef MOZ_QUANTIFY
|
||||
|
|
|
@ -580,6 +580,13 @@ case "$target" in
|
|||
_USE_DYNAMICBASE=1
|
||||
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
|
||||
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
|
||||
elif test "$_CC_MAJOR_VERSION" = "16"; then
|
||||
_CC_SUITE=10
|
||||
CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
|
||||
LDFLAGS="$LDFLAGS -MANIFESTUAC:NO"
|
||||
_USE_DYNAMICBASE=1
|
||||
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
|
||||
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
|
||||
else
|
||||
AC_MSG_ERROR([This version of the MSVC compiler, $CC_VERSION , is unsupported.])
|
||||
fi
|
||||
|
|
|
@ -255,7 +255,7 @@ endif
|
|||
ifdef MOZ_DEBUG_SYMBOLS
|
||||
OS_CXXFLAGS += -Zi -UDEBUG -DNDEBUG
|
||||
OS_CFLAGS += -Zi -UDEBUG -DNDEBUG
|
||||
OS_LDFLAGS += -DEBUG -OPT:REF -OPT:nowin98
|
||||
OS_LDFLAGS += -DEBUG -OPT:REF
|
||||
endif
|
||||
|
||||
ifdef MOZ_QUANTIFY
|
||||
|
|
|
@ -490,6 +490,13 @@ case "$target" in
|
|||
_USE_DYNAMICBASE=1
|
||||
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
|
||||
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
|
||||
elif test "$_CC_MAJOR_VERSION" = "16"; then
|
||||
_CC_SUITE=10
|
||||
CXXFLAGS="$CXXFLAGS -Zc:wchar_t-"
|
||||
LDFLAGS="$LDFLAGS -MANIFESTUAC:NO"
|
||||
_USE_DYNAMICBASE=1
|
||||
AC_DEFINE(_CRT_SECURE_NO_WARNINGS)
|
||||
AC_DEFINE(_CRT_NONSTDC_NO_WARNINGS)
|
||||
else
|
||||
AC_MSG_ERROR([This version of the MSVC compiler, $CC_VERSION , is unsupported.])
|
||||
fi
|
||||
|
|
Загрузка…
Ссылка в новой задаче