Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions src/coreclr/clrfeatures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,21 @@ if(NOT DEFINED FEATURE_DBGIPC)
endif()
endif(NOT DEFINED FEATURE_DBGIPC)

# ICorProfiler is supported by default
set(FEATURE_CORPROFILER 1)
if(NOT DEFINED FEATURE_CORPROFILER)
# ICorProfiler isn't supported on non-desktop targets or WASM scenarios
if(NOT CLR_CMAKE_TARGET_ARCH_WASM
# AND NOT CLR_CMAKE_TARGET_ANDROID
# AND NOT CLR_CMAKE_TARGET_MACCATALYST
# AND NOT CLR_CMAKE_TARGET_IOS
Comment thread
AaronRobinsonMSFT marked this conversation as resolved.
AND NOT CLR_CMAKE_TARGET_TVOS)
set(FEATURE_CORPROFILER 1)
endif()
Comment thread
AaronRobinsonMSFT marked this conversation as resolved.
Comment thread
AaronRobinsonMSFT marked this conversation as resolved.
endif()

if(CLR_CMAKE_TARGET_ARCH_WASM)
# FEATURE_INTERPRETER is already enabled by default
set(FEATURE_PORTABLE_ENTRYPOINTS 1)
set(FEATURE_PORTABLE_HELPERS 1)
set(FEATURE_CORPROFILER 0)
endif(CLR_CMAKE_TARGET_ARCH_WASM)

if(CLR_CMAKE_TARGET_BROWSER)
Expand Down
Loading