about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-10-31 09:36:30 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-10-31 10:03:41 -0700
commit20c301330cf17dd98c58aaff602586b99f7676fc (patch)
tree8aef32edb3dbbaf5f86abbebb37320937f386ef3 /src/test/run-pass/thinlto
parent074d30d030a3339565ab737c23312e6bbe625431 (diff)
downloadrust-20c301330cf17dd98c58aaff602586b99f7676fc.tar.gz
rust-20c301330cf17dd98c58aaff602586b99f7676fc.zip
rustc: Add knowledge of Windows subsystems.
This commit is an implementation of [RFC 1665] which adds support for the
`#![windows_subsystem]` attribute. This attribute allows specifying either the
"windows" or "console" subsystems on Windows to the linker.

[RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md

Previously all Rust executables were compiled as the "console" subsystem which
meant that if you wanted a graphical application it would erroneously pop up a
console whenever opened. When compiling an application, however, this is
undesired behavior and the "windows" subsystem is used instead to have control
over user interactions.

This attribute is validated, but ignored on all non-Windows platforms.

cc #37499
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions