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

Adapt determinePlatform to the new defaults for Win32 #2227

Merged
merged 2 commits into from Mar 7, 2022

Conversation

MoonlightSentinel
Copy link
Contributor

Starting with DMD 2.099, -m32 defaults to MsCOFF instead of OMF and
-m32omf is required to use the OMF format + OPTLINK.

This commit changes the logic to select the appropriate logic based
on the current compiler version. Potentially using the wrong object file
format during platform probing is fine because the codegen is skipped
(dmd is invoked with -c -o-).

@MoonlightSentinel MoonlightSentinel force-pushed the windows-32-default branch 7 times, most recently from 0a2f8c2 to 09c48d9 Compare March 5, 2022 13:27
@MoonlightSentinel MoonlightSentinel force-pushed the windows-32-default branch 3 times, most recently from bb51304 to 00b3871 Compare March 5, 2022 17:28
@thewilsonator
Copy link
Contributor

Please merge when you're happy with this.

@MoonlightSentinel MoonlightSentinel force-pushed the windows-32-default branch 2 times, most recently from b8015a2 to 74d9ba8 Compare March 6, 2022 17:32
Starting with DMD 2.099, `-m32` defaults to MsCOFF instead of OMF and
`-m32omf` is required to use the OMF format + OPTLINK.

This commit changes the logic to select the appropriate logic based
on the current compiler version. Potentially using the wrong object file
format during platform probing is fine because the codegen is skipped
(dmd is invoked with `-c -o-`).
@MoonlightSentinel MoonlightSentinel marked this pull request as ready for review March 7, 2022 20:47
@MoonlightSentinel
Copy link
Contributor Author

Should be good now. But I've got no power here.

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

Successfully merging this pull request may close these issues.

None yet

3 participants