File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff 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 >
917917getClangInvocationFileMapping (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
Original file line number Diff line number Diff 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`.
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ set CUSTOM_CLANG_MODULE_CACHE=%build_root%\tmp\org.llvm.clang.9999
6464md %build_root% \tmp\org.swift.package-manager
6565set SWIFTPM_MODULECACHE_OVERRIDE = %build_root% \tmp\org.swift.package-manager
6666
67+ set RunTest = 1
68+ if " %1 " == " -notest" set RunTest = 0
69+
6770call :clone_repositories %exitOnError%
6871call :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
8386call :build_libdispatch %exitOnError%
8487
8588path %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
8995goto :end
9096endlocal
You can’t perform that action at this time.
0 commit comments