-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[release/6.0][android] pick fixes for building Android stdlib and swift-foundation to swift 6 #77626
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
DougGregor
merged 4 commits into
swiftlang:release/6.0
from
hyp:eng/6/android-windows-stdlib-foundation-build
Dec 3, 2024
Merged
[release/6.0][android] pick fixes for building Android stdlib and swift-foundation to swift 6 #77626
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
set(SWIFT_HOST_VARIANT_SDK ANDROID CACHE STRING "") | ||
set(SWIFT_HOST_VARIANT_ARCH i686 CACHE STRING "") | ||
|
||
# NOTE(compnerd) disable the tools, we are trying to build just the standard | ||
# library. | ||
set(SWIFT_INCLUDE_TOOLS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) cannot build tests since the tests require the toolchain | ||
set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) cannot build docs since that requires perl | ||
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) these are part of the toolchain, not the runtime. | ||
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) build with the compiler specified, not a just built compiler. | ||
set(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER YES CACHE BOOL "") | ||
|
||
set(SWIFT_SDK_ANDROID_ARCHITECTURES i686 CACHE STRING "") | ||
|
||
# NOTE(compnerd) this is lollipop, which seems to still have decent usage. | ||
set(SWIFT_ANDROID_API_LEVEL 21 CACHE STRING "") |
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,24 @@ | ||
|
||
set(SWIFT_HOST_VARIANT_SDK ANDROID CACHE STRING "") | ||
set(SWIFT_HOST_VARIANT_ARCH x86_64 CACHE STRING "") | ||
|
||
# NOTE(compnerd) disable the tools, we are trying to build just the standard | ||
# library. | ||
set(SWIFT_INCLUDE_TOOLS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) cannot build tests since the tests require the toolchain | ||
set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) cannot build docs since that requires perl | ||
set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) these are part of the toolchain, not the runtime. | ||
set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "") | ||
|
||
# NOTE(compnerd) build with the compiler specified, not a just built compiler. | ||
set(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER YES CACHE BOOL "") | ||
|
||
set(SWIFT_SDK_ANDROID_ARCHITECTURES x86_64 CACHE STRING "") | ||
|
||
# NOTE(compnerd) this is lollipop, which seems to still have decent usage. | ||
set(SWIFT_ANDROID_API_LEVEL 21 CACHE STRING "") |
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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
set(BUILTIN_FLOAT_SWIFT_FLAGS -Xfrontend -module-abi-name -Xfrontend Darwin) | ||
else() | ||
set(BUILTIN_FLOAT_SWIFT_FLAGS) | ||
endif() | ||
if(NOT DEFINED SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT OR NOT SWIFT_BUILD_CLANG_OVERLAYS_SKIP_BUILTIN_FLOAT) | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") | ||
set(BUILTIN_FLOAT_SWIFT_FLAGS -Xfrontend -module-abi-name -Xfrontend Darwin) | ||
else() | ||
set(BUILTIN_FLOAT_SWIFT_FLAGS) | ||
endif() | ||
|
||
add_swift_target_library(swift_Builtin_float | ||
${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} | ||
IS_SDK_OVERLAY | ||
add_swift_target_library(swift_Builtin_float | ||
${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} | ||
IS_SDK_OVERLAY | ||
|
||
linker-support/magic-symbols-for-install-name.c | ||
linker-support/magic-symbols-for-install-name.c | ||
|
||
GYB_SOURCES | ||
float.swift.gyb | ||
GYB_SOURCES | ||
float.swift.gyb | ||
|
||
SWIFT_COMPILE_FLAGS | ||
${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS} | ||
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS} | ||
${BUILTIN_FLOAT_SWIFT_FLAGS} | ||
SWIFT_COMPILE_FLAGS | ||
${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS} | ||
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS} | ||
${BUILTIN_FLOAT_SWIFT_FLAGS} | ||
|
||
LINK_FLAGS | ||
${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} | ||
LINK_FLAGS | ||
${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} | ||
|
||
INSTALL_IN_COMPONENT stdlib | ||
MACCATALYST_BUILD_FLAVOR zippered) | ||
INSTALL_IN_COMPONENT stdlib | ||
MACCATALYST_BUILD_FLAVOR zippered) | ||
endif() |
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,7 @@ | ||
--- | ||
Name: bionic | ||
Functions: | ||
- Name: fts_open | ||
Parameters: | ||
- Position: 0 | ||
Type: "char * const _Nullable * _Nonnull" |
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
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.
Why does this get handled differently from the other targets?