File tree Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Expand file tree Collapse file tree 4 files changed +31
-3
lines changed Original file line number Diff line number Diff line change
1
+ # Config file for continuous integration.
2
+
3
+ [rust ]
4
+ codegen-units = 0 # Use many compilation units.
5
+ debug-assertions = true # Turn on assertions in rustc.
6
+
7
+ [build ]
8
+ docs = false
9
+ extended = false
10
+
11
+ [llvm ]
12
+ assertions = true # Turn on assertions in LLVM.
13
+ use-linker = " gold" # Uses less memory than ld.
14
+
15
+ [install ]
16
+ prefix = " build/rustc_boehm"
17
+ sysconfdir = " etc"
Original file line number Diff line number Diff line change @@ -16,3 +16,14 @@ cargo check
16
16
17
17
rustup toolchain install nightly --allow-downgrade --component rustfmt
18
18
cargo +nightly fmt --all -- --check
19
+
20
+ # Build and test with rustgc
21
+ git clone https://github.com/softdevteam/rustgc
22
+ mkdir -p rustgc/build/rustgc
23
+ (cd rustgc && ./x.py build --config ../.buildbot.config.toml)
24
+
25
+ rustup toolchain link rustgc rustgc/build/x86_64-unknown-linux-gnu/stage1
26
+
27
+ cargo clean
28
+
29
+ cargo +rustgc test --features " rustgc"
Original file line number Diff line number Diff line change @@ -112,12 +112,12 @@ impl Gc<dyn Any> {
112
112
}
113
113
}
114
114
115
- #[ cfg( not( feature = "rustc_boehm " ) ) ]
115
+ #[ cfg( not( feature = "rustgc " ) ) ]
116
116
pub fn needs_finalizer < T > ( ) -> bool {
117
117
std:: mem:: needs_drop :: < T > ( )
118
118
}
119
119
120
- #[ cfg( feature = "rustc_boehm " ) ]
120
+ #[ cfg( feature = "rustgc " ) ]
121
121
pub fn needs_finalizer < T > ( ) -> bool {
122
122
std:: mem:: needs_finalizer :: < T > ( )
123
123
}
Original file line number Diff line number Diff line change 1
- #![ cfg_attr( feature = "rustc_boehm " , feature( gc) ) ]
1
+ #![ cfg_attr( feature = "rustgc " , feature( gc) ) ]
2
2
#![ feature( core_intrinsics) ]
3
3
#![ feature( allocator_api) ]
4
4
#![ feature( alloc_layout_extra) ]
You can’t perform that action at this time.
0 commit comments