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

Set compiler config to be owned (following wasm-c-api) #1874

Merged
merged 5 commits into from
Dec 4, 2020

Conversation

syrusakbary
Copy link
Member

Description

Set compiler config to be owned (following wasm-c-api)

Review

  • Add a short description of the the change to the CHANGELOG.md file

@syrusakbary
Copy link
Member Author

bors try

bors bot added a commit that referenced this pull request Dec 4, 2020
@bors
Copy link
Contributor

bors bot commented Dec 4, 2020

try

Build failed:

Copy link
Contributor

@MarkMcCaskey MarkMcCaskey left a 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

@@ -207,8 +207,8 @@ impl CompilerConfig for LLVM {
}

/// Transform it into the compiler.
fn compiler(&self) -> Box<dyn Compiler + Send> {
Box::new(LLVMCompiler::new(&self))
fn compiler(self: Box<Self>) -> Box<dyn Compiler + Send> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using From/Into traits here; not sure how this is used but that could be a bit cleaner

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried, couldn't make it work with From. We can do it in a PR apart if necessary

@syrusakbary
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Dec 4, 2020
1874: Set compiler config to be owned (following wasm-c-api) r=syrusakbary a=syrusakbary

<!-- 
Prior to submitting a PR, review the CONTRIBUTING.md document for recommendations on how to test:
https://github.com/wasmerio/wasmer/blob/master/CONTRIBUTING.md#pull-requests

-->

# Description

Set compiler config to be owned (following wasm-c-api)
<!-- 
Provide details regarding the change including motivation,
links to related issues, and the context of the PR.
-->

# Review

- [ ] Add a short description of the the change to the CHANGELOG.md file


Co-authored-by: Syrus <[email protected]>
Co-authored-by: Syrus Akbary <[email protected]>
@bors
Copy link
Contributor

bors bot commented Dec 4, 2020

Build failed:

@syrusakbary
Copy link
Member Author

Merging directly to alleviate CI. Tests are passing locally

@syrusakbary syrusakbary merged commit 54bce39 into master Dec 4, 2020
@bors bors bot deleted the compilerconfig-owned branch December 4, 2020 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants