Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 96e6dbf

Browse files
Update 000-creating-a-window.md
1 parent 3778cd8 commit 96e6dbf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

‎book-src/basics/000-creating-a-window.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,19 +112,6 @@ I'm going to put the following attribute at the top of the file:
112112

113113
This will make is to that a "release" build (with the `--release` flag) will use the "windows" subsystem on Windows, instead of the "console" subsystem. This makes the process not have a console by default, which prevents a little terminal window from running in the background when the program runs on its own. However, we only want that in release mode because we want the ability to print debug message in debug mode.
114114

115-
### Static C Runtime
116-
117-
Also, I'm going to add a `.cargo/` folder to the project and put a `config` file inside.
118-
119-
```toml
120-
[build]
121-
rustflags = ["-C","target-feature=+crt-static"]
122-
```
123-
124-
This will make Rust compile in a static C runtime when it builds the binaries, so that the binaries can be sent to others without them needing to have the MSVC redistributable DLLs or other files like that on their machine. It's not on by default because I don't even know why. I think it makes programs marginally larger, but it doesn't seem to make them compile slower so whatever.
125-
126-
We could instead make a totally `no_std` program if we wanted to, but that's a whole set of steps and not really OpenGL related at all, so for this tutorial book we'll use the "quick and dirty" way to get our programs to be easily portable.
127-
128115
### Static Linking SDL2
129116

130117
Finally, instead of dynamic linking with SDL2 we could static link with it.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /