Merge m-c to fx-team

This commit is contained in:
Wes Kocher
2014-02-24 18:29:49 -08:00
212 changed files with 2472 additions and 1988 deletions

View File

@@ -245,6 +245,7 @@ class TreeMetadataEmitter(LoggingMixin):
'CFLAGS',
'CXXFLAGS',
'LDFLAGS',
'WIN32_EXE_LDFLAGS',
]
for v in varlist:
if v in sandbox and sandbox[v]:

View File

@@ -710,6 +710,17 @@ VARIABLES = {
added to the linker's command line in the same order as they
appear in the moz.build file.
""", 'libs'),
'WIN32_EXE_LDFLAGS': (list, list,
"""Flags passed to the linker when linking a Windows .exe executable
declared in this directory.
Note that the ordering of flags matter here, these flags will be
added to the linker's command line in the same order as they
appear in the moz.build file.
This variable only has an effect on Windows.
""", 'libs'),
}
# The set of functions exposed to the sandbox.

View File

@@ -45,3 +45,4 @@ USE_STATIC_LIBS = True
CFLAGS += ['-fno-exceptions', '-w']
CXXFLAGS += ['-fcxx-exceptions', '-include foo.h']
LDFLAGS += ['-framework Foo', '-x']
WIN32_EXE_LDFLAGS += ['-subsystem:console']

View File

@@ -351,7 +351,10 @@ class TestRecursiveMakeBackend(BackendTester):
'LDFLAGS': [
'LDFLAGS += -framework Foo',
'LDFLAGS += -x',
]
],
'WIN32_EXE_LDFLAGS': [
'WIN32_EXE_LDFLAGS += -subsystem:console',
],
}
for var, val in expected.items():

View File

@@ -51,3 +51,4 @@ USE_STATIC_LIBS = True
CFLAGS += ['-fno-exceptions', '-w']
CXXFLAGS += ['-fcxx-exceptions', '-include foo.h']
LDFLAGS += ['-framework Foo', '-x']
WIN32_EXE_LDFLAGS += ['-subsystem:console']

View File

@@ -179,6 +179,7 @@ class TestEmitterBasic(unittest.TestCase):
CFLAGS=['-fno-exceptions', '-w'],
CXXFLAGS=['-fcxx-exceptions', '-include foo.h'],
LDFLAGS=['-framework Foo', '-x'],
WIN32_EXE_LDFLAGS=['-subsystem:console'],
)
variables = objs[0].variables