blob: a0f37f597b844404096b9f154dab58588f93f24e [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 1a47eac590f57c765033c7797b0759dc314f2128 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
3Date: Mon, 1 Nov 2021 22:52:57 +0100
4Subject: [PATCH] Do not check binaries after build
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9* It buys us a dependency hard to fulfill in different layer setups
10* Mozjs-91 does not perform these checks when setting --enable-project=js. Here
11 for old configuration style --enable-project changes nothing and build wants
12 to check binaries created.
13
14So omit checks by not searching for llvm_objdump and making check_binary.py a
15stub to prevent errors by using unset LLVM_OBJDUMP.
16
17Upstream-Status: Inappropriate [oe specific]
18
19Signed-off-by: Andreas MΓΌller <schnitzeltony@gmail.com>
20---
21 moz.configure | 7 -------
22 python/mozbuild/mozbuild/action/check_binary.py | 2 +-
23 2 files changed, 1 insertion(+), 8 deletions(-)
24
25diff --git a/moz.configure b/moz.configure
26index 9b0e784..41e3e4d 100755
27--- a/moz.configure
28+++ b/moz.configure
29@@ -648,13 +648,6 @@ def llvm_objdump(host_c_compiler, c_compiler, bindgen_config_paths):
30 return (llvm_objdump,)
31
32
33-llvm_objdump = check_prog('LLVM_OBJDUMP', llvm_objdump, what='llvm-objdump',
34- when='--enable-compile-environment',
35- paths=toolchain_search_path)
36-
37-add_old_configure_assignment('LLVM_OBJDUMP', llvm_objdump)
38-
39-
40 js_option('--enable-dtrace', help='Build with dtrace support')
41
42 dtrace = check_header('sys/sdt.h', when='--enable-dtrace',
43diff --git a/python/mozbuild/mozbuild/action/check_binary.py b/python/mozbuild/mozbuild/action/check_binary.py
44index 57ccfa6..bd2c167 100644
45--- a/python/mozbuild/mozbuild/action/check_binary.py
46+++ b/python/mozbuild/mozbuild/action/check_binary.py
47@@ -366,4 +366,4 @@ def main(args):
48
49
50 if __name__ == '__main__':
51- sys.exit(main(sys.argv[1:]))
52+ sys.exit(0)
53--
542.31.1
55