Skip to content

Fix binplacing WASM files for in-tree runtime pack#36985

Merged
akoeplinger merged 2 commits into
dotnet:masterfrom
akoeplinger:fix-wasm
May 26, 2020
Merged

Fix binplacing WASM files for in-tree runtime pack#36985
akoeplinger merged 2 commits into
dotnet:masterfrom
akoeplinger:fix-wasm

Conversation

@akoeplinger
Copy link
Copy Markdown
Member

It got broken by #36781

@ghost
Copy link
Copy Markdown

ghost commented May 25, 2020

Tagging subscribers to this area: @ViktorHofer
Notify danmosemsft if you want to be subscribed.

Comment thread eng/liveBuilds.targets Outdated
Comment thread src/mono/wasm/Makefile
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still not sure why we explicitly list only this native lib

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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.

@akoeplinger akoeplinger requested a review from safern May 26, 2020 16:00
<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)" />
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The 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. 😄

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will merge to unblock wasm and add the comment in another PR.

@akoeplinger akoeplinger merged commit eef0169 into dotnet:master May 26, 2020
@akoeplinger akoeplinger deleted the fix-wasm branch May 26, 2020 18:19
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants