Skip to content

Commit 2ce06d7

Browse files
Merge pull request #4556 from swiftwasm/main
[pull] swiftwasm from main
2 parents 0ca00fe + 78a4cb8 commit 2ce06d7

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ importer::addCommonInvocationArguments(
913913
/// On Linux, some platform libraries (glibc, libstdc++) are not modularized.
914914
/// We inject modulemaps for those libraries into their include directories
915915
/// to allow using them from Swift.
916-
static SmallVector<std::pair<std::string, std::string>>
916+
static SmallVector<std::pair<std::string, std::string>, 16>
917917
getClangInvocationFileMapping(ASTContext &ctx) {
918918
using Path = SmallString<128>;
919919

@@ -970,7 +970,7 @@ getClangInvocationFileMapping(ASTContext &ctx) {
970970
cxxStdlibDirs.push_back(Path(iter->path()));
971971
}
972972

973-
SmallVector<std::pair<std::string, std::string>> result;
973+
SmallVector<std::pair<std::string, std::string>, 16> result;
974974
// Inject a modulemap into the VFS for each of the libstdc++ versions.
975975
for (const Path &cxxStdlibDir : cxxStdlibDirs) {
976976
// Only inject the module map if the module does not already exist at

stdlib/public/core/UnicodeScalarProperties.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,8 @@ extension Unicode.Scalar.Properties {
12631263
/// The name of a scalar is immutable and never changed in future versions of
12641264
/// the Unicode Standard. The `nameAlias` property is provided to issue
12651265
/// corrections if a name was issued erroneously. For example, the `name` of
1266-
/// U+FE18 is "PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRACKET"
1267-
/// (note that "BRACKET" is misspelled). The `nameAlias` property then
1266+
/// U+FE18 is "PRESENTATION FORM FOR VERTICAL RIGHT WHITE LENTICULAR BRAKCET"
1267+
/// (note that "BRAKCET" is misspelled). The `nameAlias` property then
12681268
/// contains the corrected name.
12691269
///
12701270
/// If a scalar has no alias, this property is `nil`.

utils/build-windows.bat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ set CUSTOM_CLANG_MODULE_CACHE=%build_root%\tmp\org.llvm.clang.9999
6464
md %build_root%\tmp\org.swift.package-manager
6565
set SWIFTPM_MODULECACHE_OVERRIDE=%build_root%\tmp\org.swift.package-manager
6666

67+
set RunTest=1
68+
if "%1"=="-notest" set RunTest=0
69+
6770
call :clone_repositories %exitOnError%
6871
call :download_icu %exitOnError%
6972
:: TODO: Disabled until we need LLBuild/SwiftPM in this build script.
@@ -83,8 +86,11 @@ path %PATH%;C:\Program Files\Git\usr\bin
8386
call :build_libdispatch %exitOnError%
8487

8588
path %source_root%\icu-%icu_version%\bin64;%install_directory%\bin;%build_root%\swift\bin;%build_root%\swift\libdispatch-prefix\bin;%PATH%
86-
call :test_swift %exitOnError%
87-
call :test_libdispatch %exitOnError%
89+
90+
if %RunTest%==1 (
91+
call :test_swift %exitOnError%
92+
call :test_libdispatch %exitOnError%
93+
)
8894

8995
goto :end
9096
endlocal

0 commit comments

Comments
 (0)