-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[embedded] Resolve a circular dependency problem in SwiftShims when using pico-libc #81857
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// RUN: %empty-directory(%t) | ||
// RUN: mkdir -p %t/include | ||
// RUN: %{python} %utils/split_file.py -o %t %s | ||
|
||
// RUN: %target-swift-frontend -target armv7em-none-none-eabi -emit-ir %t/Main.swift -enable-experimental-feature Embedded -module-cache-path %t/ModuleCache -Xcc -I%t/include | ||
|
||
// REQUIRES: swift_in_compiler | ||
// REQUIRES: optimized_stdlib | ||
// REQUIRES: CODEGENERATOR=ARM | ||
// REQUIRES: embedded_stdlib_cross_compiling | ||
// REQUIRES: swift_feature_Embedded | ||
|
||
// BEGIN Main.swift | ||
|
||
print("hello") | ||
|
||
// BEGIN include/stdint.h | ||
|
||
#include <float.h> | ||
typedef __INTPTR_TYPE__ intptr_t; | ||
typedef __UINTPTR_TYPE__ uintptr_t; | ||
typedef __INT64_TYPE__ int64_t; | ||
typedef __UINT64_TYPE__ uint64_t; | ||
typedef __INT32_TYPE__ int32_t; | ||
typedef __UINT32_TYPE__ uint32_t; | ||
typedef __INT16_TYPE__ int16_t; | ||
typedef __UINT16_TYPE__ uint16_t; | ||
typedef __INT8_TYPE__ int8_t; | ||
typedef __UINT8_TYPE__ uint8_t; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this apply to all clang importer calls now? If so we need to add it to the docs. (But I'm supportive)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, all ClangImporter calls.