Skip to content

Commit

Permalink
Bug 1031352 - move most of the _MSC_VER references in Makefile.in to …
Browse files Browse the repository at this point in the history
…moz.build; r=glandium
  • Loading branch information
froydnj committed Jun 27, 2014
1 parent 585e678 commit c599444
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 67 deletions.
4 changes: 0 additions & 4 deletions browser/installer/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ ifdef NSS_DISABLE_DBM
DEFINES += -DNSS_DISABLE_DBM=1
endif

ifdef _MSC_VER
DEFINES += -D_MSC_VER=$(_MSC_VER)
endif

DEFINES += -DJAREXT=

ifdef MOZ_ANGLE_RENDERER
Expand Down
6 changes: 0 additions & 6 deletions intl/unicharutil/util/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,3 @@ include $(topsrcdir)/config/rules.mk
ifdef ENABLE_INTL_API
LOCAL_INCLUDES += $(MOZ_ICU_CFLAGS)
endif

ifdef _MSC_VER
# Don't include directives about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions intl/unicharutil/util/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ USE_STATIC_LIBS = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']
6 changes: 0 additions & 6 deletions js/src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,6 @@ else
SHARED_LIBRARY_LIBS += $(MOZ_ICU_LIBS)
endif

# Prevent floating point errors caused by VC++ optimizations
ifdef _MSC_VER
# XXX We should add this to CXXFLAGS, too?
CFLAGS += -fp:precise
endif # _MSC_VER

ifeq ($(OS_ARCH),FreeBSD)
EXTRA_LIBS += -pthread
endif
Expand Down
3 changes: 3 additions & 0 deletions js/src/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ if CONFIG['_MSC_VER']:
SOURCES['builtin/RegExp.cpp'].no_pgo = True # Bug 772303
elif CONFIG['CPU_ARCH'] == 'x86_64' and CONFIG['JS_HAS_CTYPES']:
SOURCES['ctypes/CTypes.cpp'].no_pgo = True # Bug 810661
# Prevent floating point errors caused by VC++ optimizations
# XXX We should add this to CXXFLAGS, too?
CFLAGS += ['-fp:precise']

# Needed to "configure" it correctly. Unfortunately these
# flags wind up being applied to all code in js/src, not just
Expand Down
9 changes: 0 additions & 9 deletions xpcom/glue/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
# Don't include directives about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/glue/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ FORCE_STATIC_LIB = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']

LOCAL_INCLUDES += [
'../build',
Expand Down
9 changes: 0 additions & 9 deletions xpcom/glue/nomozalloc/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
# Don't include directives about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/glue/nomozalloc/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ FORCE_STATIC_LIB = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']

DEFINES['MOZ_NO_MOZALLOC'] = True

Expand Down
9 changes: 0 additions & 9 deletions xpcom/glue/standalone/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
# Don't include directives in obj files about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/glue/standalone/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ FORCE_STATIC_LIB = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']

DEFINES['XPCOM_GLUE'] = True

Expand Down
9 changes: 0 additions & 9 deletions xpcom/glue/standalone/staticruntime/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.


DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
# Don't include directives in obj files about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/glue/standalone/staticruntime/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ FORCE_STATIC_LIB = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']

DEFINES['XPCOM_GLUE'] = True

Expand Down
9 changes: 0 additions & 9 deletions xpcom/glue/staticruntime/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
# Don't include directives about which CRT to use
OS_COMPILE_CXXFLAGS += -Zl
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/glue/staticruntime/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ FORCE_STATIC_LIB = True

if CONFIG['_MSC_VER']:
DEFINES['_USE_ANSI_CPP'] = True
# Don't include directives about which CRT to use
CFLAGS += ['-Zl']
CXXFLAGS += ['-Zl']

LOCAL_INCLUDES += [
'../../build',
Expand Down
6 changes: 0 additions & 6 deletions xpcom/typelib/xpt/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DIST_INSTALL = 1

include $(topsrcdir)/config/rules.mk

ifdef _MSC_VER
OS_COMPILE_CFLAGS += -Zl
endif
3 changes: 3 additions & 0 deletions xpcom/typelib/xpt/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ GENERATED_INCLUDES += ['/xpcom/base']
LOCAL_INCLUDES += ['/xpcom/base']

FAIL_ON_WARNINGS = True

if CONFIG['_MSC_VER']:
CFLAGS += ['-Zl']

0 comments on commit c599444

Please sign in to comment.