bug 1454613 - build binsource when building SpiderMonkey. r=firefox-build-system-reviewers,chmanchester
authorTed Mielczarek <ted@mielczarek.org>
Mon, 19 Nov 2018 18:19:41 +0000
changeset 503461 43c0e876bc6f45d5228a6298ac5cd2f9a91009bb
parent 503460 1d500eb5982310cce77eb7af298584b150ff1d5e
child 503462 b020ea6c58e52c8ba94f92f5f52236d4cd74fa1a
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfirefox-build-system-reviewers, chmanchester
bugs1454613
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1454613 - build binsource when building SpiderMonkey. r=firefox-build-system-reviewers,chmanchester Differential Revision: https://phabricator.services.mozilla.com/D11056
js/src/frontend/binsource/Cargo.toml
js/src/frontend/binsource/moz.build
js/src/moz.build
--- a/js/src/frontend/binsource/Cargo.toml
+++ b/js/src/frontend/binsource/Cargo.toml
@@ -1,13 +1,18 @@
 [package]
 name = "binast"
 version = "0.1.1"
 authors = ["David Teller <D.O.Teller@gmail.com>"]
+autobins = false
 
 [dependencies]
 binjs_meta = "^0.4.3"
 clap = "^2"
 env_logger = "^0.5.6"
 itertools = "^0.7.6"
 log = "0.4"
 yaml-rust = "^0.4"
 webidl = "^0.8"
+
+[[bin]]
+name = "binsource"
+path = "src/main.rs"
new file mode 100644
--- /dev/null
+++ b/js/src/frontend/binsource/moz.build
@@ -0,0 +1,7 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# 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/.
+
+HOST_RUST_PROGRAMS += ['binsource']
--- a/js/src/moz.build
+++ b/js/src/moz.build
@@ -395,16 +395,17 @@ if CONFIG['HAVE_LINUX_PERF_EVENT_H']:
 else:
     SOURCES += [
         'perf/pm_stub.cpp'
     ]
 
 DIRS += [
     'build',
     'frontend',
+    'frontend/binsource',
     'gc',
     'jit',
     'wasm',
 ]
 
 FINAL_LIBRARY = 'js'
 
 if CONFIG['ENABLE_WASM_CRANELIFT']: