Skip to content
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

[webcil] Minor cleanups #81009

Merged
merged 8 commits into from
Jan 24, 2023
Merged

[webcil] Minor cleanups #81009

merged 8 commits into from
Jan 24, 2023

Conversation

lambdageek
Copy link
Member

@lambdageek lambdageek commented Jan 23, 2023

Contributes to #80807

  1. Use strlen(LITERAL) instead of magic constants in C. the compiler will turn them into constants anyway
  2. Use CopyIfDifferent in WasmAppBuilder when converting webcil.
  3. WasmAppHost: explicitly serve .webcil as application/octet-stream

Let the C compiler do the math
@ghost ghost assigned lambdageek Jan 23, 2023
@lambdageek lambdageek added the arch-wasm WebAssembly architecture label Jan 23, 2023
@ghost
Copy link

ghost commented Jan 23, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #808087

  1. Use strlen(LITERAL) instead of magic constants in C. the compiler will turn them into constants anyway
  2. Use CopyIfDifferent in WasmAppBuilder when converting webcil.
  3. WasmAppHost: explicitly serve .webcil as application/octet-stream
Author: lambdageek
Assignees: lambdageek
Labels:

arch-wasm, area-VM-meta-mono

Milestone: -

@lambdageek lambdageek marked this pull request as ready for review January 23, 2023 01:58
lambdageek and others added 2 commits January 23, 2023 15:14
But log whether we actually copied anything or not

Co-authored-by: Ankit Jain <[email protected]>
@lambdageek
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lambdageek lambdageek merged commit 5c59b07 into dotnet:main Jan 24, 2023
mdh1418 pushed a commit to mdh1418/runtime that referenced this pull request Jan 24, 2023
* replace magic constants by strlen(LITERAL)

   Let the C compiler do the math

* Use CopyIfDifferent for webcil converter in WasmAppBuilder

* WasmAppHost: serve .webcil as application/octet-stream

* Add mime types for webcil in two more places

* Always add to _fileWrites

   But log whether we actually copied anything or not

Co-authored-by: Ankit Jain <[email protected]>
@ghost ghost locked as resolved and limited conversation to collaborators Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-VM-meta-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants