Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select native target triple and architecture #633

Open
elliottslaughter opened this issue Aug 21, 2023 · 0 comments
Open

Select native target triple and architecture #633

elliottslaughter opened this issue Aug 21, 2023 · 0 comments

Comments

@elliottslaughter
Copy link
Member

By default, Terra uses LLVM to auto-detect the CPU it's running on, and chooses a target triple and target CPU architecture native to that CPU. The latter is the moral equivalent of -march=native in Clang.

This creates problems for certain users who want to build on a different platform than they intend to run on. This isn't usually full-on cross-compilation. Typically it's variations on the same overall architecture (i.e., one generation of x86 to another, not x86 to ARM).

It would be nice to provide a flag or other option to specify Terra's native target triple and architecture so that the user can configure this more easily, without having to manually define a new target to pass to saveobj.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant