File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,11 @@ include(FetchContent)
100
100
# optional until we have a bootstrap story.
101
101
check_language (Swift )
102
102
if (CMAKE_Swift_COMPILER )
103
+ # we are not interested in logging any Swift module used
104
+ # when configuring the build system -- those are not useful
105
+ # since they will not contribute to the build of the compiler itself
106
+ unset (ENV{SWIFT_LOADED_MODULE_TRACE_FILE} )
107
+
103
108
enable_language (Swift )
104
109
set (DEFAULT_SWIFT_MIN_RUNTIME_VERSION "${CMAKE_Swift_COMPILER_VERSION} " )
105
110
else ()
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ function(swift_supports_implicit_module module_name out_var)
3
3
file (WRITE "${CMAKE_BINARY_DIR} /tmp/empty-check-${module_name} .swift" "" )
4
4
execute_process (
5
5
COMMAND
6
- ${CMAKE_COMMAND}
7
- -E env --unset=SWIFT_LOADED_MODULE_TRACE_FILE
8
6
"${CMAKE_Swift_COMPILER} "
9
7
-Xfrontend -disable-implicit-${module_name}-module-import
10
8
-Xfrontend -parse-stdlib
You can’t perform that action at this time.
0 commit comments