Commit 4fdb45e
committed
Fix: move if/else outside defmodule to avoid Zig macro expansion
Elixir expands macros in both branches of a module-level if/else,
causing 'use Zig' to fail when Zigler isn't installed even if the
precompiled path is taken. Moving the conditional to the file top
level (outside defmodule) ensures only the matching branch is evaluated.1 parent f6a39d5 commit 4fdb45e
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
0 commit comments