Skip to content

Commit

Permalink
enable bitcode for quickjs subproject
Browse files Browse the repository at this point in the history
  • Loading branch information
hexploitable authored and Grant Douglas committed Oct 30, 2024
1 parent af5d828 commit 6e4f3c4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
27 changes: 18 additions & 9 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,16 @@ endif
gumjs_extra_requires = []
if have_gumjs
cdata.set('HAVE_GUMJS', 1)

quickjs_options = [
'libc=false',
'bignum=true',
'atomics=disabled',
'stack_check=disabled',
]
if enable_bitcode
message("Enabling bitcode for QuickJS")
quickjs_options += ['bitcode=enabled']
endif

quickjs_dep = dependency('quickjs', required: get_option('quickjs'), default_options: quickjs_options)
cdata.set('HAVE_QUICKJS', quickjs_dep.found())
Expand All @@ -609,17 +612,23 @@ if have_gumjs
quickjs_dep_native = dependency('quickjs', native: true, default_options: quickjs_options)
endif

v8_opts = [
'debug=false',
'embedder_string=-frida',
'snapshot_compression=disabled',
'pointer_compression=disabled',
'shared_ro_heap=disabled',
'cppgc_caged_heap=disabled',
]
if enable_bitcode
message("Enabling bitcode for V8")
v8_opts += ['bitcode=enabled']
endif

v8_dep = dependency('v8-10.0',
version: '>=10.6.122',
required: get_option('v8'),
default_options: [
'debug=false',
'embedder_string=-frida',
'snapshot_compression=disabled',
'pointer_compression=disabled',
'shared_ro_heap=disabled',
'cppgc_caged_heap=disabled',
],
default_options: v8_opts,
)
cdata.set('HAVE_V8', v8_dep.found())
if v8_dep.found()
Expand Down
4 changes: 2 additions & 2 deletions subprojects/quickjs.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/frida/quickjs.git
revision = 12de2e4904b63405052508c891b215d056962c18
url = https://github.com/hexploitable/quickjs.git
revision = 133b8b1e5112ba8b0152ba36272c18c3bcaef149
depth = 1

[provide]
Expand Down

0 comments on commit 6e4f3c4

Please sign in to comment.