swift icon indicating copy to clipboard operation
swift copied to clipboard

[Platform] Update musl modulemap and improve musl platform support.

Open al45tair opened this issue 1 year ago • 6 comments

We need to declare separate top-level modules for every header in the musl C library. Note that our set-up here does require some tweaks to musl itself (specifically, the alltypes.h header needs some fairly serious massaging to make it module compatible; in particular, we need to pull out every type declaration into its own separate modularized header in bits/types).

Also update Platform.swift a little for more musl support.

rdar://123503615

al45tair avatar Feb 23 '24 16:02 al45tair

This sits on top of #71839.

al45tair avatar Feb 23 '24 16:02 al45tair

@swift-ci Please smoke test

al45tair avatar Feb 23 '24 16:02 al45tair

@swift-ci Please smoke test

al45tair avatar Feb 28 '24 12:02 al45tair

Thank you for doing this one!

ian-twilightcoder avatar Mar 13 '24 19:03 ian-twilightcoder

We also need to change the clang importer to not pass -fbuiltin-headers-in-system-modules when using musl

ian-twilightcoder avatar Mar 13 '24 19:03 ian-twilightcoder

We also need to change the clang importer to not pass -fbuiltin-headers-in-system-modules when using musl

That is in this changeset as part of #71844.

al45tair avatar May 03 '24 12:05 al45tair

@swift-ci Please smoke test

al45tair avatar May 07 '24 16:05 al45tair

@swift-ci Please smoke test

al45tair avatar May 07 '24 20:05 al45tair

@swift-ci Please smoke test

al45tair avatar May 08 '24 06:05 al45tair