File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -801,6 +801,7 @@ function(_compile_swift_files
801
801
set (swift_compiler_tool "${SWIFT_SOURCE_DIR} /utils/check-incremental" "${swift_compiler_tool} " )
802
802
endif ()
803
803
804
+ set (custom_env "PYTHONIOENCODING=UTF8" )
804
805
if (SWIFTFILE_IS_STDLIB OR
805
806
# Linux "hosttools" build require builder's runtime before building the runtime.
806
807
(BOOTSTRAPPING_MODE STREQUAL "HOSTTOOLS" AND SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD|FREEBSD" )
@@ -811,13 +812,13 @@ function(_compile_swift_files
811
812
# to pick up the stdlib from the previous bootstrapping stage, because the
812
813
# stdlib in the current stage is not built yet.
813
814
if (SWIFT_HOST_VARIANT_SDK IN_LIST SWIFT_APPLE_PLATFORMS )
814
- set ( set_environment_args " ${CMAKE_COMMAND} " "-E" "env" "DYLD_LIBRARY_PATH=${bs_lib_dir} " )
815
+ list ( APPEND custom_env "DYLD_LIBRARY_PATH=${bs_lib_dir} " )
815
816
elseif (SWIFT_HOST_VARIANT_SDK MATCHES "LINUX|ANDROID|OPENBSD|FREEBSD" )
816
- set ( set_environment_args " ${CMAKE_COMMAND} " "-E" "env" "LD_LIBRARY_PATH=${bs_lib_dir} " )
817
+ list ( APPEND custom_env "LD_LIBRARY_PATH=${bs_lib_dir} " )
817
818
endif ()
818
819
endif ()
819
-
820
820
endif ()
821
+ set (set_environment_args "${CMAKE_COMMAND} " "-E" "env" "${custom_env} " )
821
822
822
823
if (SWIFT_REPORT_STATISTICS )
823
824
list (GET dirs_to_create 0 first_obj_dir )
Original file line number Diff line number Diff line change 2
2
// RUN: %target-swift-frontend -scan-dependencies %/s %/S/Inputs/unicode_filёnamё.swift -o %t/deps.json
3
3
4
4
// Check the contents of the JSON output
5
- // RUN: env PYTHONIOENCODING=UTF-8 %validate-json < %t/deps.json
5
+ // RUN: %validate-json < %t/deps.json
6
6
// RUN: %FileCheck %s < %t/deps.json
7
7
8
8
public func bar( ) {
Original file line number Diff line number Diff line change 1
- // REQUIRES: rdar92613094
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: split-file %s %t
2
3
3
4
// RUN: %{python} %utils/line-directive
4
- // RUN: %{python} %utils/line-directive -- %{python} -c "print('你好')"
5
+ // RUN: %{python} %utils/line-directive -- %{python} %t/unicode.py
6
+
7
+ //--- unicode.py
8
+ print ( '你好')
You can’t perform that action at this time.
0 commit comments