mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-25 16:49:29 -05:00
Fix x86 build
This commit is contained in:
parent
eeffe1d722
commit
580a89cf10
2 changed files with 5 additions and 1 deletions
4
build.rs
4
build.rs
|
@ -134,6 +134,10 @@ fn build_v8() {
|
|||
};
|
||||
}
|
||||
|
||||
if target_triple.starts_with("i686-") {
|
||||
gn_args.push(r#"target_cpu="x86""#.to_string());
|
||||
}
|
||||
|
||||
let gn_root = env::var("CARGO_MANIFEST_DIR").unwrap();
|
||||
|
||||
let gn_out = maybe_gen(&gn_root, gn_args);
|
||||
|
|
|
@ -2463,7 +2463,7 @@ void v8__HeapProfiler__TakeHeapSnapshot(v8::Isolate* isolate,
|
|||
|
||||
// This is necessary for v8__internal__GetIsolateFromHeapObject() to be
|
||||
// reliable enough for our purposes.
|
||||
#if !(defined V8_SHARED_RO_HEAP or defined V8_COMPRESS_POINTERS)
|
||||
#if UINTPTR_MAX == 0xffffffffffffffff && !(defined V8_SHARED_RO_HEAP or defined V8_COMPRESS_POINTERS)
|
||||
#error V8 must be built with either the 'v8_enable_pointer_compression' or \
|
||||
'v8_enable_shared_ro_heap' feature enabled.
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue