File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,9 @@ impl CodegenBackend for CraneliftCodegenBackend {
296
296
297
297
let mut faerie_module = new_module ( "some_file" . to_string ( ) ) ;
298
298
299
- let mut debug = if tcx. sess . opts . debuginfo != DebugInfo :: None {
299
+ let mut debug = if tcx. sess . opts . debuginfo != DebugInfo :: None
300
+ && !tcx. sess . target . target . options . is_like_osx // macOS debuginfo doesn't work yet (see #303)
301
+ {
300
302
let debug = DebugContext :: new ( tcx, faerie_module. target_config ( ) . pointer_type ( ) . bytes ( ) as u8 ) ;
301
303
Some ( debug)
302
304
} else {
@@ -372,7 +374,8 @@ fn build_isa(sess: &Session) -> Box<isa::TargetIsa + 'static> {
372
374
"false"
373
375
} ) . unwrap ( ) ;
374
376
375
- match sess. opts . optimize {
377
+ // FIXME enable again when https://github.com/CraneStation/cranelift/issues/664 is fixed
378
+ /*match sess.opts.optimize {
376
379
OptLevel::No => {
377
380
flags_builder.set("opt_level", "fastest").unwrap();
378
381
}
@@ -383,7 +386,7 @@ fn build_isa(sess: &Session) -> Box<isa::TargetIsa + 'static> {
383
386
OptLevel::Size | OptLevel::SizeMin => {
384
387
sess.warn("Optimizing for size is not supported. Just ignoring the request");
385
388
}
386
- }
389
+ }*/
387
390
388
391
let flags = settings:: Flags :: new ( flags_builder) ;
389
392
cranelift:: codegen:: isa:: lookup ( sess. target . target . llvm_target . parse ( ) . unwrap ( ) )
You can’t perform that action at this time.
0 commit comments