diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-07-12 15:30:30 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-07-20 12:19:16 -0700 |
| commit | 913393fd3b986dd262a8419341dced9ad5d9620d (patch) | |
| tree | 24206439ed1abe1e7ca09a0f164d79981ea4eb2b /src/link | |
| parent | ee6432537ee29485c5de6c8b0911ef1482d752a7 (diff) | |
| download | zig-913393fd3b986dd262a8419341dced9ad5d9620d.tar.gz zig-913393fd3b986dd262a8419341dced9ad5d9620d.zip | |
stage2: first pass over Module.zig for AIR memory layout
Diffstat (limited to 'src/link')
| -rw-r--r-- | src/link/SpirV.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link/SpirV.zig b/src/link/SpirV.zig index bfae799462..8a2e877d42 100644 --- a/src/link/SpirV.zig +++ b/src/link/SpirV.zig @@ -135,6 +135,10 @@ pub fn flushModule(self: *SpirV, comp: *Compilation) !void { const tracy = trace(@src()); defer tracy.end(); + if (build_options.skip_non_native) { + @panic("Attempted to compile for architecture that was disabled by build configuration"); + } + const module = self.base.options.module.?; const target = comp.getTarget(); |
