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

Rework GNU -m flags #1269

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Rework GNU -m flags #1269

wants to merge 6 commits into from

Conversation

madsmtm
Copy link
Collaborator

@madsmtm madsmtm commented Nov 4, 2024

WIP: Rework GNU -m flags to be more robust and better support compilation to different CPU architecture configurations (hard/soft float, endianess, CPU features, sub-architecture, etc.).

Builds upon #1266.

Once done:
Replaces part of #791.
Replaces #796.
Replaces #871.
Fixes #710.
Probably fixes #984.
Maybe the GCC part of #268.

We do this by storing the default target features in `TargetInfo`.
They should be redundant, the `--target` parameter contains the
information already.
And prepare for adding more architecture-specific flags.

There are no functional changes here (apart from the `-m32`/`-m64` flags
appearing slightly later in the command line, but that shouldn't have
any effect).
It is unsound to call between code built with different floating point
modes, so let's make sure we pass this flag correctly.
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

Successfully merging this pull request may close these issues.

Error compiling for apple target x86_64-apple-darwin: unrecognized command line option ‘-arch’
1 participant