diff options
Diffstat (limited to 'js/src/moz.build')
-rw-r--r-- | js/src/moz.build | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/js/src/moz.build b/js/src/moz.build index b68732d122..897f60ae39 100644 --- a/js/src/moz.build +++ b/js/src/moz.build @@ -49,6 +49,7 @@ EXPORTS += [ 'jstypes.h', 'jsversion.h', 'jswrapper.h', + 'perf/jsperf.h', ] # If you add a header here, add it to js/src/jsapi-tests/testIntTypesABI.cpp so @@ -109,7 +110,6 @@ DIRS += [ 'gc', 'irregexp', 'jit', - 'perf', ] if CONFIG['JS_BUNDLED_EDITLINE']: @@ -143,6 +143,7 @@ SOURCES += [ 'jsscript.cpp', 'jsstr.cpp', 'jsweakmap.cpp', + 'perf/jsperf.cpp', 'proxy/BaseProxyHandler.cpp', 'proxy/CrossCompartmentWrapper.cpp', 'proxy/DeadObjectProxy.cpp', @@ -296,6 +297,17 @@ if CONFIG['MOZ_VTUNE']: 'vtune/jitprofiling.c' ] +if CONFIG['HAVE_LINUX_PERF_EVENT_H']: + SOURCES += [ + 'perf/pm_linux.cpp' + ] + if CONFIG['LINUX_HEADERS_INCLUDES']: + SOURCES['perf/pm_linux.cpp'].flags += [CONFIG['LINUX_HEADERS_INCLUDES']] +else: + SOURCES += [ + 'perf/pm_stub.cpp' + ] + # JavaScript must be built shared, even for static builds, as it is used by # other modules which are always built shared. Failure to do so results in # the js code getting copied into xpinstall and jsd as well as mozilla-bin, |