mirror of
https://github.com/servo/servo.git
synced 2025-10-17 08:49:21 +01:00
* ohos: Fix compilation for x86_64 Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> * ohos: Use the SDK compiler-wrapper When compiling for x86_64-unknown-linux-ohos without the compiler wrapper, for some reason mozjs_sys will be refercing a wrong mangled symbol resulting in the following error when loading the .so at runtime: ``` _ZNSt3__111this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILl1ELl1000000000EEEEE: symbol not found ``` This problem does not occur when compiling for aarch64 or when using the compiler wrapper. In this case the correct symbol `_ZNSt4__n111this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILl1ELl1000000000EEEEE` is referenced. It's unclear why manually passing the flags via CFLAGS / CXXFLAGS does not work. Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com> --------- Signed-off-by: Jonathan Schwender <jonathan.schwender@huawei.com>
19 lines
554 B
Rust
19 lines
554 B
Rust
/* 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 https://mozilla.org/MPL/2.0/. */
|
|
|
|
#![deny(unsafe_code)]
|
|
|
|
pub mod background_hang_monitor;
|
|
mod sampler;
|
|
#[cfg(all(
|
|
target_os = "linux",
|
|
not(any(target_arch = "arm", target_arch = "aarch64", target_env = "ohos"))
|
|
))]
|
|
mod sampler_linux;
|
|
#[cfg(target_os = "macos")]
|
|
mod sampler_mac;
|
|
#[cfg(target_os = "windows")]
|
|
mod sampler_windows;
|
|
|
|
pub use self::background_hang_monitor::*;
|