Skip to content

Commit 3cfb752

Browse files
committed
TO REVERT: make LTO always supported
1 parent 8f0abf1 commit 3cfb752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ impl CodegenBackend for GccCodegenBackend {
228228
//context.compile_to_file(gccjit::OutputKind::ObjectFile, temp_file.to_str().expect("path to str"));
229229
// FIXME: compile gives the error as expected, but compile_to_file doesn't.
230230
check_context.compile();
231-
let error = check_context.get_last_error();
232-
let lto_supported = error == Ok(None);
231+
//let error = check_context.get_last_error();
232+
let lto_supported = true; //error == Ok(None);
233233
LTO_SUPPORTED.store(lto_supported, Ordering::SeqCst);
234234
self.lto_supported.store(lto_supported, Ordering::SeqCst);
235235
}

0 commit comments

Comments
 (0)