Skip to content

Commit 375fc59

Browse files
[wasm] Enable building compiler-rt/lib/profile
This patch enables building `compiler-rt/lib/profile` for WebAssembly targets. This is necessary to support `-fprofile-instr-generate` for WebAssembly targets.
1 parent b4b99e9 commit 375fc59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/swift_build_support/swift_build_support/products/wasisysroot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ def _build(self, host_target, enable_wasi_threads=False,
158158
self.cmake_options.define('COMPILER_RT_DEFAULT_TARGET_ONLY:BOOL', 'TRUE')
159159
self.cmake_options.define('COMPILER_RT_BAREMETAL_BUILD:BOOL', 'TRUE')
160160
self.cmake_options.define('COMPILER_RT_BUILD_XRAY:BOOL', 'FALSE')
161+
self.cmake_options.define('COMPILER_RT_BUILD_PROFILE:BOOL', 'TRUE')
161162
self.cmake_options.define('COMPILER_RT_INCLUDE_TESTS:BOOL', 'FALSE')
162163
self.cmake_options.define('COMPILER_RT_HAS_FPIC_FLAG:BOOL', 'FALSE')
163164
self.cmake_options.define('COMPILER_RT_EXCLUDE_ATOMIC_BUILTIN:BOOL', 'FALSE')

0 commit comments

Comments
 (0)