diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-11-04 14:45:57 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-11-04 14:45:57 -0500 |
commit | 59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972 (patch) | |
tree | 50e70cd1a88cbb0b7480d4ed5bccd3b317f4609d /js | |
parent | ff355fe9ac5327a62cdbd05f99dff9febe5de5df (diff) | |
download | UXP-59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972.tar UXP-59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972.tar.gz UXP-59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972.tar.lz UXP-59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972.tar.xz UXP-59511eb8dddac5556c4aa72d6d7fe1a2c3dc3972.zip |
Issue #1676 - Part 18: Move and separate top level sources from vm sources in js/src/moz.build
Diffstat (limited to 'js')
-rw-r--r-- | js/src/moz.build | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/js/src/moz.build b/js/src/moz.build index 3c4093ade..7b963ac42 100644 --- a/js/src/moz.build +++ b/js/src/moz.build @@ -125,15 +125,19 @@ if not CONFIG['JS_DISABLE_SHELL']: SOURCES += [ 'jsalloc.cpp', 'jsapi.cpp', + 'jsarray.cpp', + 'jsatom.cpp', 'jsbool.cpp', 'jscntxt.cpp', 'jscompartment.cpp', 'jsdate.cpp', + 'jsdtoa.cpp', 'jsexn.cpp', 'jsfriendapi.cpp', 'jsfun.cpp', 'jsgc.cpp', 'jsiter.cpp', + 'jsmath.cpp', 'jsnativestack.cpp', 'jsnum.cpp', 'jsobj.cpp', @@ -143,7 +147,16 @@ SOURCES += [ 'jspropertytree.cpp', 'jsscript.cpp', 'jsstr.cpp', + 'jsutil.cpp', 'jsweakmap.cpp', +] + +# Suppress warnings in third-party code. +# We are keeping this in the main moz.build because it is file specific +if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']: + SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough'] + +SOURCES += [ 'vm/ArgumentsObject.cpp', 'vm/ArrayBufferObject.cpp', 'vm/AsyncFunction.cpp', @@ -163,6 +176,7 @@ SOURCES += [ 'vm/GlobalObject.cpp', 'vm/HelperThreads.cpp', 'vm/Id.cpp', + 'vm/Initialization.cpp', 'vm/Interpreter.cpp', 'vm/JSONParser.cpp', 'vm/MemoryMetrics.cpp', @@ -204,26 +218,6 @@ SOURCES += [ 'vm/Xdr.cpp', ] -# jsarray.cpp and jsatom.cpp cannot be built in unified mode because -# xpcshell is broken during packaging when compiled with gcc-4.8.2 -# jsdtoa.cpp cannot be built in unified mode because we want to suppress -# compiler warnings in third-party dtoa.c. -# jsmath.cpp cannot be built in unified mode because it needs to pull rand_s -# from <stdlib.h> on Windows through a preprocessor define. -# jsutil.cpp cannot be built in unified mode because it is needed for -# check-vanilla-allocations. -# StoreBuffer.cpp cannot be built in unified because its template -# instantiations may or may not be needed depending on what it gets bundled -# with. -SOURCES += [ - 'jsarray.cpp', - 'jsatom.cpp', - 'jsdtoa.cpp', - 'jsmath.cpp', - 'jsutil.cpp', - 'vm/Initialization.cpp', -] - if CONFIG['JS_POSIX_NSPR']: SOURCES += [ 'vm/PosixNSPR.cpp', @@ -315,9 +309,4 @@ NO_EXPAND_LIBS = True DIST_INSTALL = True -# Suppress warnings in third-party code. -# We are keeping this in the main moz.build because it is file specific -if CONFIG['CLANG_CXX'] or CONFIG['GNU_CXX']: - SOURCES['jsdtoa.cpp'].flags += ['-Wno-implicit-fallthrough'] - |