File tree 2 files changed +9
-4
lines changed
servo/ports/geckolib/tests 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ fn main() {
85
85
for line in r. lines ( ) {
86
86
let s = line
87
87
. unwrap ( )
88
+ . replace ( "#[no_mangle]" , "" )
88
89
. replace ( "pub extern \" C\" fn" , "pub unsafe extern \" C\" fn" ) ;
89
90
w. write_all ( s. as_bytes ( ) ) . unwrap ( ) ;
90
91
w. write_all ( b"\n " ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -16,11 +16,15 @@ mod error_reporter;
16
16
#[ path = "../../../ports/geckolib/stylesheet_loader.rs" ]
17
17
mod stylesheet_loader;
18
18
19
- #[ allow( non_snake_case, unused_unsafe, private_no_mangle_fns ) ]
19
+ #[ allow( non_snake_case, unused_unsafe) ]
20
20
mod glue {
21
- // this module pretends to be glue.rs, with the safe functions swapped for unsafe ones. This is
22
- // a hack to compensate for the fact that `fn` types cannot coerce to `unsafe fn` types. The
23
- // imports are populated with the same things so the type assertion should be equivalent
21
+ // this module pretends to be glue.rs, with the safe functions swapped for
22
+ // unsafe ones. This is a hack to compensate for the fact that `fn` types
23
+ // cannot coerce to `unsafe fn` types. The imports are populated with the
24
+ // same things so the type assertion should be equivalent.
25
+ //
26
+ // We also rely on #[no_mangle] being stripped out so that it can link on
27
+ // Windows without linking to Gecko, see bug 1512271.
24
28
use geckoservo:: * ;
25
29
include ! ( concat!( env!( "OUT_DIR" ) , "/glue.rs" ) ) ;
26
30
}
You can’t perform that action at this time.
0 commit comments