Commit 0faa413
authored
Use
I noticed that y'all were carrying this workaround ever since
#14888. A better way to detect this is through [the `PYODIDE`
environment variable, which we've documented over the
years](https://pyodide-build.readthedocs.io/en/latest/how-to/migrate.html#detecting-pyodide-at-build-time),
and is what most projects use now. The MACHDEP generality would mostly
apply to non-Pyodide-specific WASM build targets, which are growing in
relevance but are a bit less mature as Pyodide at this time.PYODIDE environment variable for Emscripten cross-compilation detection (#21714)1 parent 3d75cdb commit 0faa413
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments