-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Platform: add a cplusplus
requirement to XAudio
#35268
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
Conversation
In some cases when building the `XAudio` module, we would end up going down C++ paths: ``` C:\Program Files (x86)\Windows Kits\10\/Include/10.0.17763.0/um/xaudio2.h:61:26: error: 'uuid' attribute is not supported in C interface __declspec(uuid("2B02E3CF-2E0B-4ec3-BE45-1B2A3FE7210D")) IXAudio2; ^ <module-includes>:29:10: note: in file included from <module-includes>:29: ^ ``` Although this works with newer SDKs, it does not work with older SDKs. Filter out the module for the time being with a requirement on `C++`. This should be possible to use with `-enable-cxx-interop`.
@swift-ci please smoke test |
@swift-ci please smoke test macOS platform |
Well that's stinky. I don't mind the newer SDK requirement, but I'd like to avoid build flags until the package manager gets a safe way to define them per package. I'd like to keep projects working with just swift build and nothing else. I'll look into XAudio1 and see what it's expected end of life might be and if it meets all the requirements for reasonably modern spacial audio, I'm sure it probably does. If the newest Xbox supports it then that's at least 5 more years of support. |
Sure, but I don't think its fair to break the modules for everyone else. You can workaround it by using: swiftSettings: [
.unsafeFlags(["-Xfrontend", "-enable-cxx-interop"])
] in |
@swift-ci please smoke test macOS platform |
@kastiglione - hey, mind taking a look at this failure? The failure is interesting, I've been seeing this elsewhere as well, where |
|
That compilation error is fixed in swiftlang/llvm-project#2281 |
@swift-ci please smoke test macOS platform |
In some cases when building the
XAudio
module, we would end up goingdown C++ paths:
Although this works with newer SDKs, it does not work with older SDKs.
Filter out the module for the time being with a requirement on
C++
.This should be possible to use with
-enable-cxx-interop
.Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.
Resolves SR-NNNN.