File tree 1 file changed +1
-10
lines changed
1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,8 @@ fn main() {
15
15
textures:: build_texture_file ( & mut File :: create ( & dest. join ( "textures.rs" ) ) . unwrap ( ) ) ;
16
16
println ! ( "cargo:rerun-if-changed=build/main.rs" ) ;
17
17
18
-
19
- // There is a `#[derive(Clone)]` line in the bindings that triggers a stack overflow
20
- // in rustc (https://github.com/rust-lang/rust/issues/26467).
21
- // Therefore we write the bindings to memory first, then remove this line, and then copy
22
- // to the file.
23
- let mut gl_bindings = Vec :: new ( ) ;
24
- generate_gl_bindings ( & mut gl_bindings) ;
25
- let gl_bindings = String :: from_utf8 ( gl_bindings) . unwrap ( ) ;
26
- let gl_bindings = gl_bindings. replace ( "#[derive(Clone)]" , "" ) ;
27
18
let mut file_output = File :: create ( & dest. join ( "gl_bindings.rs" ) ) . unwrap ( ) ;
28
- file_output . write_all ( & gl_bindings . into_bytes ( ) ) . unwrap ( ) ;
19
+ generate_gl_bindings ( & mut file_output ) ;
29
20
}
30
21
31
22
fn generate_gl_bindings < W > ( dest : & mut W ) where W : Write {
You can’t perform that action at this time.
0 commit comments