Skip to content

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