Skip to content

Commit 135f78e

Browse files
[wasm] Define CMake options for stdlib explicitly for Darwin host build
The stdlib build for wasm target is failing on Darwin host due to default values of some CMake options on Darwin host. We need to explicitly define these options to make the build pass.
1 parent d898001 commit 135f78e

File tree

1 file changed

+6
-0
lines changed
  • utils/swift_build_support/swift_build_support/products

1 file changed

+6
-0
lines changed

utils/swift_build_support/swift_build_support/products/wasmstdlib.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ def build(self, host_target):
8181
# Build only static stdlib
8282
self.cmake_options.define('SWIFT_BUILD_STATIC_STDLIB:BOOL', 'TRUE')
8383
self.cmake_options.define('SWIFT_BUILD_DYNAMIC_STDLIB:BOOL', 'FALSE')
84+
self.cmake_options.define('SWIFT_STDLIB_TRACING:BOOL', 'FALSE')
85+
self.cmake_options.define('SWIFT_STDLIB_HAS_ASLR:BOOL', 'FALSE')
86+
self.cmake_options.define('SWIFT_STDLIB_CONCURRENCY_TRACING:BOOL', 'FALSE')
87+
self.cmake_options.define(
88+
'SWIFT_STDLIB_INSTALL_PARENT_MODULE_FOR_SHIMS:BOOL', 'FALSE')
89+
self.cmake_options.define('SWIFT_RUNTIME_CRASH_REPORTER_CLIENT:BOOL', 'FALSE')
8490
self.cmake_options.define(
8591
'SWIFT_STDLIB_SINGLE_THREADED_CONCURRENCY:BOOL', 'TRUE')
8692
self.cmake_options.define('SWIFT_ENABLE_DISPATCH:BOOL', 'FALSE')

0 commit comments

Comments
 (0)