Commit f0f30e7
Avoid to emit inline asm for WebAssembly (#5)
When I build swift code as debuggable, I got the following error:
```
error: couldn't allocate input reg for constraint 'r'
```
This means we can't use `InlineAsm` with registers because WASM doesn't have registers.
Swift uses `InlineAsm` to extend lifetime of variable for debugging. So I changed to avoid to use it.
After this change, we can build swift standard library as debuggable via `./utils/build-script --debug`.
## References
- https://gcc.gnu.org/onlinedocs/gcc/Simple-Constraints.html#Simple-Constraints1 parent 779841b commit f0f30e7
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
659 | 663 | | |
660 | 664 | | |
661 | 665 | | |
| |||
0 commit comments