-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Extract src/mono/browser
from src/mono/wasm
#95940
Conversation
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsTODO:
|
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
@@ -149,15 +149,15 @@ | |||
<!-- Sets up emscripten if you don't have the EMSDK_PATH env variable set --> | |||
<Target Name="ProvisionEmscripten" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated: why is emscripten provisioning in mono.proj instead of wasm.proj?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@radekdoulik would know better. My guess is that it just happens to be there, and we can move it to wasm.proj .
<_FilesToCopy Include="$(MSBuildThisFileDirectory)..\wasm\runtime\runtime.h" DestinationFolder="$(NativeBinDir)include\wasm" /> | ||
<_FilesToCopy Include="$(MSBuildThisFileDirectory)..\wasm\runtime\pinvoke.h" DestinationFolder="$(NativeBinDir)include\wasm" /> | ||
<_FilesToCopy Include="$(WasiProjectRoot)mono-include\driver.h" DestinationFolder="$(NativeBinDir)include\wasm" /> | ||
<_FilesToCopy Include="$(BrowserProjectRoot)runtime\gc-common.h" DestinationFolder="$(NativeBinDir)include\wasm" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move these sources to common directory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, in follow up PRs we can do the necessary moving around.
@@ -51,7 +49,7 @@ | |||
<EnableDefaultBuildHelixWorkItems>false</EnableDefaultBuildHelixWorkItems> | |||
|
|||
<!-- on unix CI has emscripten provisioned in $(EMSDK_PATH) as `/usr/local/emscripten`. --> | |||
<EMSDK_PATH Condition="$([MSBuild]::IsOSPlatform('WINDOWS')) and '$(EMSDK_PATH)' == ''">$(RepoRoot)src\mono\wasm\emsdk\</EMSDK_PATH> | |||
<EMSDK_PATH Condition="$([MSBuild]::IsOSPlatform('WINDOWS')) and '$(EMSDK_PATH)' == ''">$(RepoRoot)src\mono\browser\emsdk\</EMSDK_PATH> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use ProvisionEmscriptenDir
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. We can move that property to the top level Directory.Build.props
, and then use it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though the property put in D.B.props should be $(InTreeEmSdk)
, and that can be used in src/tests/FunctionalTests/WebAssembly/Directory.Build.props too.
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
Perf run for sanity check - https://dev.azure.com/dnceng/internal/_build/results?buildId=2338052 |
/azp run runtime-wasm |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
The makefile target was moved in #95940
The makefile target was moved in #95940
It was moved from src/mono/wasm to src/mono/browser in dotnet#95940
It was moved from src/mono/wasm to src/mono/browser in #95940
Wasm.Build.Tests
is still insrc/mono/wasm
, mainly because it has lot of common code for build tests. And this will share more code with wasi-build-tests in future PRs.src/mono/browser
, and then moves some browser specific directories fromsrc/mono/wasm
to it.Includes changes based on review feedback from @ maraf, and @ pavelsavara