Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

compile .c files with ImportC #3855

Merged
merged 3 commits into from
Jun 22, 2022
Merged

Conversation

WalterBright
Copy link
Member

Use ImportC to compile .c files for druntime Win32 library

@WalterBright WalterBright added the ImportC Pertaining to ImportC support label Jun 22, 2022
@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#3855"

UDFLAGS=-m32omf -conf= -O -release -preview=dip1000 -preview=fieldwise -w -Isrc -Iimport
DDOCFLAGS=-conf= -c -w -o- -Isrc -Iimport -version=CoreDdoc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this a symptom of documentation only being built on Linux/POSIX? Shouldn't the make files instead be synced up so doc generation recipes are (re?)added to the windows makefiles?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's ever needed, it should be added then. Currently, it is unused and just a distraction.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, the Makefiles should all be merged to a single one for all platforms in the long-term, using GNU make. LDC uses GNU make on Windows for the druntime tests (test subdir; not using the win64.mak files for those - Windows extras have been added to the 'Posix' makefiles and can be upstreamed), so it's definitely an option.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be ok with me, as long as the make program is distributed with the compiler binaries.

@WalterBright WalterBright merged commit 8460e29 into dlang:master Jun 22, 2022
@WalterBright WalterBright deleted the useImportC32 branch June 22, 2022 17:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ImportC Pertaining to ImportC support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants