Skip to content

[test][IRGen] Avoid redefinition of bool in huge_c_type.swift #69059

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

kateinoigakukun
Copy link
Member

musl and wasi-libc modules contains stdint.h and stdbool.h in their modulemap, and #incnlude <stdint.h> in huge_c_type.h leads including stdbool.h also in the scope. This results in conflicting the bool definition, so we should avoid the redefinition.

musl and wasi-libc modules contains stdint.h and stdbool.h in their
modulemap, and `#incnlude <stdint.h>` in huge_c_type.h leads including
stdbool.h also in the scope. This results in conflicting the bool
definition, so we should avoid the redefinition.
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test

@kateinoigakukun kateinoigakukun marked this pull request as ready for review October 9, 2023 14:48
@MaxDesiatov MaxDesiatov added test suite Area: test suite IRGen LLVM IR generation WebAssembly Platform: WebAssembly labels Oct 9, 2023
@kateinoigakukun kateinoigakukun merged commit 0cf8e4c into swiftlang:main Oct 9, 2023
@kateinoigakukun kateinoigakukun deleted the pr-562be51930a6434c568fb2c1d3c2ed1b5b173f63 branch October 9, 2023 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IRGen LLVM IR generation test suite Area: test suite WebAssembly Platform: WebAssembly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants