Skip to content

Commit 719546e

Browse files
committed
---
yaml --- r: 340831 b: refs/heads/rxwei-patch-1 c: c512946 h: refs/heads/master i: 340829: 76360b7 340827: acfae3c 340823: 4a66c26 340815: a5b0541 340799: fba5d54
1 parent 9b73fef commit 719546e

File tree

372 files changed

+5661
-14703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+5661
-14703
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: 379d88cb122447bdd507b835e2f7b651ec09c6a0
1018+
refs/heads/rxwei-patch-1: c51294671bf2b9587f4de57ed834633359d84db3
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -845,18 +845,14 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT CMAKE_CROSSCOMPILING)
845845
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
846846
endif()
847847

848-
if(SWIFT_INCLUDE_TOOLS)
849-
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
850-
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
851-
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
852-
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
853-
message(STATUS "")
854-
else()
855-
message(STATUS "Not building host Swift tools")
856-
message(STATUS "")
857-
endif()
848+
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
849+
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
850+
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
851+
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
852+
message(STATUS "")
853+
854+
if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
858855

859-
if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
860856
message(STATUS "Building Swift standard library and overlays for SDKs: ${SWIFT_SDKS}")
861857
message(STATUS " Build type: ${SWIFT_STDLIB_BUILD_TYPE}")
862858
message(STATUS " Assertions: ${SWIFT_STDLIB_ASSERTIONS}")
@@ -865,9 +861,12 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
865861
message(STATUS "Building Swift runtime with:")
866862
message(STATUS " Leak Detection Checker Entrypoints: ${SWIFT_RUNTIME_ENABLE_LEAK_CHECKER}")
867863
message(STATUS "")
864+
868865
else()
866+
869867
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
870868
message(STATUS "")
869+
871870
endif()
872871

873872
#

branches/rxwei-patch-1/cmake/modules/AddSwift.cmake

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,10 @@ function(_add_variant_link_flags)
462462
list(APPEND link_libraries "bsd" "atomic")
463463
list(APPEND result "-Wl,-Bsymbolic")
464464
elseif("${LFLAGS_SDK}" STREQUAL "ANDROID")
465-
list(APPEND link_libraries "dl" "log" "atomic")
466-
# We need to add the math library, which is linked implicitly by libc++
467-
list(APPEND result "-lm")
468-
465+
list(APPEND link_libraries "dl" "log" "atomic" "icudataswift" "icui18nswift" "icuucswift")
466+
# We provide our own C++ below, so we ask the linker not to do it. However,
467+
# we need to add the math library, which is linked implicitly by libc++.
468+
list(APPEND result "-nostdlib++" "-lm")
469469
if("${LFLAGS_ARCH}" MATCHES armv7)
470470
set(android_libcxx_path "${SWIFT_ANDROID_NDK_PATH}/sources/cxx-stl/llvm-libc++/libs/armeabi-v7a")
471471
elseif("${LFLAGS_ARCH}" MATCHES aarch64)
@@ -477,17 +477,8 @@ function(_add_variant_link_flags)
477477
else()
478478
message(SEND_ERROR "unknown architecture (${LFLAGS_ARCH}) for android")
479479
endif()
480-
481-
# link against the custom C++ library
482-
list(APPEND link_libraries
483-
${android_libcxx_path}/libc++abi.a
484-
${android_libcxx_path}/libc++_shared.so)
485-
486-
# link against the ICU libraries
487-
list(APPEND link_libraries
488-
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_I18N}
489-
${SWIFT_ANDROID_${LFLAGS_ARCH}_ICU_UC})
490-
480+
list(APPEND link_libraries "${android_libcxx_path}/libc++abi.a")
481+
list(APPEND link_libraries "${android_libcxx_path}/libc++_shared.so")
491482
swift_android_lib_for_arch(${LFLAGS_ARCH} ${LFLAGS_ARCH}_LIB)
492483
foreach(path IN LISTS ${LFLAGS_ARCH}_LIB)
493484
list(APPEND library_search_directories ${path})
@@ -526,12 +517,8 @@ function(_add_variant_link_flags)
526517
NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WINDOWS"))
527518
list(APPEND result "-fuse-ld=lld")
528519
elseif(SWIFT_ENABLE_GOLD_LINKER AND
529-
"${SWIFT_SDK_${LFLAGS_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
530-
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
531-
list(APPEND result "-fuse-ld=gold.exe")
532-
else()
533-
list(APPEND result "-fuse-ld=gold")
534-
endif()
520+
"${SWIFT_SDK_${LFLAGS_SDK}_OBJECT_FORMAT}" STREQUAL "ELF")
521+
list(APPEND result "-fuse-ld=gold")
535522
endif()
536523
endif()
537524

@@ -1380,16 +1367,8 @@ function(_add_swift_library_single target name)
13801367
${SWIFTLIB_SINGLE_PRIVATE_LINK_LIBRARIES})
13811368
endif()
13821369

1383-
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
1384-
# `clang++` as we explicitly link against the C++ runtime. We were previously
1385-
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
1386-
if("${SWIFTLIB_SINGLE_SDK}" STREQUAL "ANDROID")
1387-
set_property(TARGET "${target}" PROPERTY
1388-
LINKER_LANGUAGE "C")
1389-
else()
1390-
set_property(TARGET "${target}" PROPERTY
1370+
set_property(TARGET "${target}" PROPERTY
13911371
LINKER_LANGUAGE "CXX")
1392-
endif()
13931372

13941373
if(target_static)
13951374
set_property(TARGET "${target_static}" APPEND_STRING PROPERTY
@@ -2346,17 +2325,6 @@ function(_add_swift_executable_single name)
23462325
target_link_libraries("${name}" PRIVATE ${SWIFTEXE_SINGLE_LINK_LIBRARIES})
23472326
swift_common_llvm_config("${name}" ${SWIFTEXE_SINGLE_LLVM_LINK_COMPONENTS})
23482327

2349-
# NOTE(compnerd) use the C linker language to invoke `clang` rather than
2350-
# `clang++` as we explicitly link against the C++ runtime. We were previously
2351-
# actually passing `-nostdlib++` to avoid the C++ runtime linkage.
2352-
if(SWIFTEXE_SINGLE_SDK STREQUAL ANDROID)
2353-
set_property(TARGET "${name}" PROPERTY
2354-
LINKER_LANGUAGE "C")
2355-
else()
2356-
set_property(TARGET "${name}" PROPERTY
2357-
LINKER_LANGUAGE "CXX")
2358-
endif()
2359-
23602328
set_target_properties(${name} PROPERTIES FOLDER "Swift executables")
23612329
endfunction()
23622330

branches/rxwei-patch-1/cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function(_report_sdk prefix)
2828
message(STATUS " ${arch} LIB: ${${arch}_LIB}")
2929
endforeach()
3030
elseif("${prefix}" STREQUAL "ANDROID")
31-
message(STATUS " NDK: $ENV{SWIFT_ANDROID_NDK_PATH}")
31+
message(STATUS " NDK Dir: $ENV{SWIFT_ANDROID_NDK_PATH}")
3232
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
3333
swift_android_include_for_arch(${arch} ${arch}_INCLUDE)
3434
swift_android_lib_for_arch(${arch} ${arch}_LIB)
@@ -225,14 +225,10 @@ macro(configure_sdk_unix name architectures)
225225
endif()
226226

227227
# Get the prebuilt suffix to create the correct toolchain path when using the NDK
228-
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Darwin)
229-
set(_swift_android_prebuilt_build darwin-x86_64)
230-
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL Linux)
231-
set(_swift_android_prebuilt_build linux-x86_64)
232-
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows)
233-
set(_swift_android_prebuilt_build Windows-x86_64)
234-
else()
235-
message(SEND_ERROR "cannot cross-compile to android from ${CMAKE_HOST_SYSTEM_NAME}")
228+
if("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin")
229+
set(_swift_android_prebuilt_build "darwin-x86_64")
230+
elseif("${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Linux")
231+
set(_swift_android_prebuilt_build "linux-x86_64")
236232
endif()
237233
if("${arch}" STREQUAL "i686")
238234
set(SWIFT_SDK_ANDROID_ARCH_${arch}_NDK_PREBUILT_PATH

branches/rxwei-patch-1/cmake/modules/SwiftSource.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ function(_compile_swift_files
269269
# into the new runtime.
270270
if (SWIFTFILE_IS_STDLIB OR SWIFTFILE_IS_SDK_OVERLAY)
271271
list(APPEND swift_flags "-runtime-compatibility-version" "none")
272-
list(APPEND swift_flags "-disable-autolinking-runtime-compatibility-dynamic-replacements")
273272
endif()
274273

275274
if (SWIFTFILE_IS_STDLIB_CORE OR SWIFTFILE_IS_SDK_OVERLAY)

branches/rxwei-patch-1/docs/ABI/Mangling.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,6 @@ Types
512512
FUNCTION-KIND ::= 'U' // uncurried function type (currently not used)
513513
FUNCTION-KIND ::= 'K' // @auto_closure function type (noescape)
514514
FUNCTION-KIND ::= 'B' // objc block function type
515-
FUNCTION-KIND ::= 'L' // objc block function type (escaping) (DWARF only; otherwise use 'B')
516515
FUNCTION-KIND ::= 'C' // C function pointer type
517516
FUNCTION-KIND ::= 'A' // @auto_closure function type (escaping)
518517
FUNCTION-KIND ::= 'E' // function type (noescape)

branches/rxwei-patch-1/docs/WindowsBuild.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ cmake -G Ninja^
355355
-DFOUNDATION_BUILD_DIR=S:\b\foundation^
356356
-DLIBDISPATCH_BUILD_DIR=S:\b\libdispatch^
357357
-DLIBDISPATCH_SOURCE_DIR=S:\swift-corelibs-libdispatch^
358-
-DSQLite3_INCLUDE_DIR=S:\sqlite-amalgamation-3270200^
359-
-DSQLite3_LIBRARY=S:\b\sqlite\sqlite3.lib^
358+
-DLLBUILD_PATH_TO_SQLITE_SOURCE=S:\sqlite-amalgamation-3270200^
359+
-DLLBUILD_PATH_TO_SQLITE_BUILD=S:\b\sqlite^
360360
-DLLBUILD_SUPPORT_BINDINGS=Swift^
361361
S:\llbuild
362362
ninja

branches/rxwei-patch-1/include/swift/AST/ASTContext.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,6 @@ class ASTContext final {
590590
/// Get the runtime availability of the opaque types language feature for the target platform.
591591
AvailabilityContext getOpaqueTypeAvailability();
592592

593-
/// Get the runtime availability of features introduced in the Swift 5.1
594-
/// compiler for the target platform.
595-
AvailabilityContext getSwift51Availability();
596-
597593
//===--------------------------------------------------------------------===//
598594
// Diagnostics Helper functions
599595
//===--------------------------------------------------------------------===//

0 commit comments

Comments
 (0)