mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Set the Windows subsystem using a rust directive
This is one less thing that mach has to do now.
This commit is contained in:
parent
f034eb6032
commit
e681e2b3f3
2 changed files with 6 additions and 5 deletions
|
@ -14,6 +14,12 @@
|
|||
//!
|
||||
//! [winit]: https://github.com/rust-windowing/winit
|
||||
|
||||
// Normally, rust uses the "Console" Windows subsystem, which pops up a console
|
||||
// when running an application. Switching to the "Windows" subsystem prevents
|
||||
// this, but also hides debugging output. Use the "Windows" console unless debug
|
||||
// mode is turned on.
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
include!("main2.rs");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue