-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Fix binplacing WASM files for in-tree runtime pack #36985
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,11 +76,6 @@ | |
| <TargetPath>runtimes/$(PackageRID)/native/include/%(RecursiveDir)</TargetPath> | ||
| </RuntimeFiles> | ||
|
|
||
| <RuntimeFiles Condition="'$(TargetsBrowser)' == 'true'" | ||
| Include="@(WasmDistFiles)"> | ||
| <TargetPath>runtimes/$(PackageRID)/native/wasm/runtimes/%(RecursiveDir)</TargetPath> | ||
| </RuntimeFiles> | ||
|
|
||
| <CoreCLRCrossTargetFiles Condition="'%(FileName)' == 'clrjit' or '%(FileName)' == 'libclrjit'"> | ||
| <TargetPath>runtimes/$(CoreCLRCrossTargetComponentDirName)_$(TargetArchitecture)/native</TargetPath> | ||
| </CoreCLRCrossTargetFiles> | ||
|
|
@@ -105,7 +100,7 @@ | |
|
|
||
| <ItemGroup Condition="'$(PackageRID)' != ''"> | ||
| <LibrariesRuntimeFiles Condition="'%(IsNative)' != 'true'" TargetPath="runtimes/$(PackageRID)/lib/$(NetCoreAppCurrent)" /> | ||
| <LibrariesRuntimeFiles Condition="'%(IsNative)' == 'true'" TargetPath="runtimes/$(PackageRID)/native/%(RecursiveDir)" /> | ||
| <LibrariesRuntimeFiles Condition="'%(IsNative)' == 'true'" TargetPath="runtimes/$(PackageRID)/native/%(LibrariesRuntimeFiles.NativeSubDirectory)%(RecursiveDir)" /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Took me a while to understand what this is doing. You might want to add a comment.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah though that applies to all of this build logic, it's pretty hard to understand without spending a lot of time looking at build flows in the binlog. 😄
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will merge to unblock wasm and add the comment in another PR. |
||
| <ReferenceCopyLocalPaths Include="@(LibrariesRuntimeFiles)" /> | ||
| </ItemGroup> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,8 @@ BINDIR?=$(TOP)/artifacts/bin | |
| OBJDIR?=$(TOP)/artifacts/obj | ||
| PINVOKE_TABLE?=$(TOP)/artifacts/obj/mono/Browser.wasm.$(CONFIG)/wasm/pinvoke-table.h | ||
| MONO_BIN_DIR?=$(BINDIR)/mono/Browser.wasm.$(CONFIG) | ||
| SYS_NATIVE_DIR?=$(BINDIR)/native/net5.0-Browser-$(CONFIG)-wasm/ | ||
| SYS_NATIVE_DIR?=$(OBJDIR)/native/net5.0-Browser-$(CONFIG)-wasm/System.Native | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still not sure why we explicitly list only this native lib
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Eventually we'll need all of them but right now it's the only native lib we use. This will need to be refactored into proper msbuild anyway. |
||
| BUILDS_BIN_DIR?=$(BINDIR)/native/net5.0-Browser-$(CONFIG)-wasm/wasm/runtimes | ||
|
|
||
| all: build-native | ||
|
|
||
|
|
@@ -44,7 +45,6 @@ emsdk_env.sh: | provision-wasm | |
|
|
||
| MONO_OBJ_DIR=$(OBJDIR)/mono/Browser.wasm.$(CONFIG) | ||
| MONO_INCLUDE_DIR=$(MONO_BIN_DIR)/include/mono-2.0 | ||
| BUILDS_BIN_DIR=$(SYS_NATIVE_DIR)/wasm/runtimes | ||
| BUILDS_OBJ_DIR=$(MONO_OBJ_DIR)/wasm/runtimes | ||
| MONO_LIBS = \ | ||
| $(MONO_BIN_DIR)/{libmono-ee-interp.a,libmonosgen-2.0.a,libmono-ilgen.a,libmono-icall-table.a} \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.