mirror of
https://github.com/servo/servo.git
synced 2025-06-06 00:25:37 +00:00
android/ohos: Fix wrong production cfg (#33488)
Our build script sets `servo_production` and not `production`. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
bd632fc814
commit
313fc663a6
3 changed files with 2 additions and 5 deletions
|
@ -131,6 +131,3 @@ sig = "1.0"
|
|||
webxr = { git = "https://github.com/servo/webxr", features = ["ipc", "glwindow", "headless", "openxr-api"] }
|
||||
windows-sys = { workspace = true, features = ["Win32_Graphics_Gdi"] }
|
||||
libservo = { path = "../../components/servo", features = ["no-wgl"] }
|
||||
|
||||
[lints.rust]
|
||||
unexpected_cfgs = { level = "allow", check-cfg = ['cfg(production)'] }
|
||||
|
|
|
@ -122,7 +122,7 @@ pub extern "C" fn Java_org_servo_servoview_JNIServo_init<'local>(
|
|||
|
||||
// We only redirect stdout and stderr for non-production builds, since it is
|
||||
// only used for debugging purposes. This saves us one thread in production.
|
||||
#[cfg(not(production))]
|
||||
#[cfg(not(servo_production))]
|
||||
if let Err(e) = super::log::redirect_stdout_and_stderr() {
|
||||
error!("Failed to redirect stdout and stderr to logcat due to: {e:?}");
|
||||
}
|
||||
|
|
|
@ -342,7 +342,7 @@ fn initialize_logging_once() {
|
|||
|
||||
// We only redirect stdout and stderr for non-production builds, since it is
|
||||
// only used for debugging purposes. This saves us one thread in production.
|
||||
#[cfg(not(production))]
|
||||
#[cfg(not(servo_production))]
|
||||
if let Err(e) = super::log::redirect_stdout_and_stderr() {
|
||||
error!("Failed to redirect stdout and stderr to hilog due to: {e:?}");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue