diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2022-11-16 14:53:03 +1100 |
|---|---|---|
| committer | Jim Mussared <jim.mussared@gmail.com> | 2022-11-17 22:37:45 +1100 |
| commit | f31a358eb222aac98f797bd51302d5b5b2711fb6 (patch) | |
| tree | edade027f8d8618e980f48d91ec6046a997da936 /py/makeqstrdefs.py | |
| parent | 5ef3aec33c457d535ae1cce8ff617d0c1cf52a90 (diff) | |
mpy-cross/main: Don't set a default native architecture.
If `-march` isn't set then it means the user hasn't thought about it, or in
the case of freezing, MPY_CROSS_FLAGS isn't set. It's almost certainly
going to lead to problems, as there's no reason why the host architecture
is likely to be the right choice.
Compiling regular Python code is unaffected, but if `@native`/`@viper` is
used, the compiler will raise `SyntaxError: invalid arch`.
For situations where you explicitly want to use the host architecture (e.g.
for running tests on the unix port), added -march=host that keeps the old
behavior.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'py/makeqstrdefs.py')
0 files changed, 0 insertions, 0 deletions
