File tree Expand file tree Collapse file tree 4 files changed +24
-24
lines changed Expand file tree Collapse file tree 4 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ endif()
3535
3636OPTION (CLR_CMAKE_ENABLE_CODE_COVERAGE "Enable code coverage" OFF )
3737
38- if (DEFINED CLR_CMAKE_ICU_DIR)
39- include_directories (${CLR_CMAKE_ICU_DIR} /include )
40- endif (DEFINED CLR_CMAKE_ICU_DIR)
41-
4238if (CLR_CMAKE_TARGET_ARCH_WASM)
4339 add_compile_options (-fwasm-exceptions)
4440endif ()
Original file line number Diff line number Diff line change @@ -11,10 +11,6 @@ endif(CLR_CMAKE_HOST_WIN32)
1111#Required to expose symbols for global symbol discovery.
1212set (CLR_CMAKE_KEEP_NATIVE_SYMBOLS TRUE )
1313
14- if (DEFINED CLR_CMAKE_ICU_DIR)
15- link_directories (${CLR_CMAKE_ICU_DIR} /lib)
16- endif (DEFINED CLR_CMAKE_ICU_DIR)
17-
1814add_executable_clr(corerun
1915 corerun.cpp
2016 dotenv.cpp
@@ -50,14 +46,21 @@ else(CLR_CMAKE_HOST_WIN32)
5046 if (CLR_CMAKE_TARGET_ARCH_WASM)
5147 target_link_libraries (corerun PRIVATE
5248 coreclr_static
53- clrinterpreter
54- icuuc
55- icui18n
56- icudata)
49+ clrinterpreter)
5750 # linker options for NodeJs, link in JavaScript helper, access to local filesystem
5851 if (CLR_CMAKE_TARGET_BROWSER)
5952 target_compile_options (corerun PRIVATE -fwasm-exceptions)
60- target_link_options (corerun PRIVATE -fwasm-exceptions -sEXPORTED_RUNTIME_METHODS=FS -sEXIT_RUNTIME=1 -sINITIAL_MEMORY=134217728 -sSTACK_SIZE=5MB -lnoderawfs.js -lnodefs.js --pre-js ${CMAKE_CURRENT_SOURCE_DIR} /corerun.js -Wl,-error-limit=0)
53+ target_link_options (corerun PRIVATE
54+ -fwasm-exceptions
55+ -sEXPORTED_RUNTIME_METHODS=FS
56+ -sEXIT_RUNTIME=1
57+ -sWASM_BIGINT=1
58+ -sINITIAL_MEMORY=134217728
59+ -sSTACK_SIZE=5MB
60+ -lnoderawfs.js
61+ -lnodefs.js
62+ --pre-js ${CMAKE_CURRENT_SOURCE_DIR} /corerun.js
63+ -Wl,-error-limit=0)
6164 endif ()
6265 endif ()
6366endif (CLR_CMAKE_HOST_WIN32)
Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ project(corewasmrun)
22
33set (CMAKE_INCLUDE_CURRENT_DIR ON )
44
5- if (DEFINED CLR_CMAKE_ICU_DIR)
6- link_directories (${CLR_CMAKE_ICU_DIR} /lib)
7- endif (DEFINED CLR_CMAKE_ICU_DIR)
8-
95add_executable_clr(corewasmrun
106 corewasmrun.cpp
117)
@@ -16,13 +12,17 @@ if (EXISTS "${_WASM_PRELOAD_DIR}")
1612endif (EXISTS "${_WASM_PRELOAD_DIR} " )
1713
1814target_compile_options (corewasmrun PRIVATE -fwasm-exceptions)
19- target_link_options (corewasmrun PRIVATE -fwasm-exceptions -sEXIT_RUNTIME=1 -sINITIAL_MEMORY=134217728 -sFORCE_FILESYSTEM=1 ${_WASM_PRELOAD_FILE} -Wl,-error-limit=0)
15+ target_link_options (corewasmrun PRIVATE
16+ -fwasm-exceptions
17+ -sEXIT_RUNTIME=1
18+ -sWASM_BIGINT=1
19+ -sINITIAL_MEMORY=134217728
20+ -sFORCE_FILESYSTEM=1
21+ ${_WASM_PRELOAD_FILE}
22+ -Wl,-error-limit=0)
2023
2124target_link_libraries (corewasmrun PRIVATE
22- coreclr_static
23- icuuc
24- icui18n
25- icudata)
25+ coreclr_static)
2626
2727# The corerun version for wasm is being installed in its own directory
2828# because it is an executable that comes with an index.html and we
Original file line number Diff line number Diff line change 44 <_BuildNativeTargetOS >$(TargetOS)</_BuildNativeTargetOS >
55 <_BuildNativeTargetOS Condition =" '$(TargetsLinuxBionic)' == 'true'" >linux-bionic</_BuildNativeTargetOS >
66 <HasCdacBuildTool Condition =" '$(ClrFullNativeBuild)' == 'true' or '$(ClrRuntimeSubset)' == 'true' or '$(ClrDebugSubset)' == 'true' or '$(ClrCrossComponentsSubset)' == 'true'" >true</HasCdacBuildTool >
7+
78 <_IcuDir Condition =" '$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)' != '' and '$(TargetsBrowser)' == 'true'" >$(PkgMicrosoft_NETCore_Runtime_ICU_Transport)/runtimes/$(TargetOS)-$(TargetArchitecture)$(_RuntimeVariant)/native</_IcuDir >
89 </PropertyGroup >
910
1011 <ItemGroup >
1112 <ProjectReference Include =" runtime-prereqs.proj" GlobalPropertiesToRemove =" $(NativeBuildPartitionPropertiesToRemove)" />
1213 <ProjectReference Condition =" '$(HasCdacBuildTool)' == 'true'" Include =" tools\cdac-build-tool\cdac-build-tool.csproj" ReferenceOutputAssembly =" false" GlobalPropertiesToRemove =" $(NativeBuildPartitionPropertiesToRemove)" />
13- <PackageReference Condition =" '$(TargetsBrowser )' == 'true'" Include =" Microsoft.NETCore.Runtime.ICU.Transport" PrivateAssets =" all" Version =" $(MicrosoftNETCoreRuntimeICUTransportVersion)" GeneratePathProperty =" true" />
14+ <PackageReference Condition =" '$(TargetsWasm )' == 'true'" Include =" Microsoft.NETCore.Runtime.ICU.Transport" PrivateAssets =" all" Version =" $(MicrosoftNETCoreRuntimeICUTransportVersion)" GeneratePathProperty =" true" />
1415 </ItemGroup >
1516
1617 <Import Project =" $(RepositoryEngineeringDir)nativepgo.targets" />
5152 <_CoreClrBuildArg Condition =" '$(BuildSubdirectory)' != ''" Include =" -subdir $(BuildSubdirectory)" />
5253 <_CoreClrBuildArg Include =" -cmakeargs " -DCLR_DOTNET_HOST_PATH=$(DOTNET_HOST_PATH)" " />
5354 <_CoreClrBuildArg Condition =" '$(HasCdacBuildTool)' == 'true'" Include =" -cmakeargs " -DCDAC_BUILD_TOOL_BINARY_PATH=$(RuntimeBinDir)cdac-build-tool\cdac-build-tool.dll" " />
54- <_CoreClrBuildArg Condition =" '$(_IcuDir)' != ''" Include =" -cmakeargs " -DCLR_CMAKE_ICU_DIR =$(_IcuDir)" " />
55+ <_CoreClrBuildArg Condition =" '$(_IcuDir)' != ''" Include =" -cmakeargs " -DCMAKE_ICU_DIR =$(_IcuDir)" " />
5556 <_CoreClrBuildArg Condition =" '$(FeatureXplatEventSource)' == 'false'" Include =" -cmakeargs " -DFEATURE_EVENTSOURCE_XPLAT=0" " />
5657 </ItemGroup >
5758
You can’t perform that action at this time.
0 commit comments