| ... | ... | @@ -1,3 +1,5 @@ |
| 1 | const builtin = @import("builtin"); |
| 2 | |
| 1 | 3 | comptime { |
| 2 | 4 | _ = @import("cases/align.zig"); |
| 3 | 5 | _ = @import("cases/alignof.zig"); |
| ... | ... | @@ -11,7 +13,6 @@ comptime { |
| 11 | 13 | _ = @import("cases/bugs/656.zig"); |
| 12 | 14 | _ = @import("cases/cast.zig"); |
| 13 | 15 | _ = @import("cases/const_slice_child.zig"); |
| 14 | | _ = @import("cases/coroutines.zig"); |
| 15 | 16 | _ = @import("cases/defer.zig"); |
| 16 | 17 | _ = @import("cases/enum.zig"); |
| 17 | 18 | _ = @import("cases/enum_with_members.zig"); |
| ... | ... | @@ -48,4 +49,15 @@ comptime { |
| 48 | 49 | _ = @import("cases/var_args.zig"); |
| 49 | 50 | _ = @import("cases/void.zig"); |
| 50 | 51 | _ = @import("cases/while.zig"); |
| 52 | |
| 53 | |
| 54 | // LLVM 5.0.1, 6.0.0, and trunk crash when attempting to optimize coroutine code. |
| 55 | // So, Zig does not support ReleaseFast or ReleaseSafe for coroutines yet. |
| 56 | // Luckily, Clang users are running into the same crashes, so folks from the LLVM |
| 57 | // community are working on fixes. If we're really lucky they'll be fixed in 6.0.1. |
| 58 | // Otherwise we can hope for 7.0.0. |
| 59 | if (builtin.mode == builtin.Mode.Debug) { |
| 60 | _ = @import("cases/coroutines.zig"); |
| 61 | } |
| 62 | |
| 51 | 63 | } |