Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Emit wasm sections only when compiling to wasm #8845

Merged
1 commit merged into from
May 18, 2021
Merged

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented May 18, 2021

A follow-up for #8688

This PR limits emitting the runtime version sections only to when the runtime is compiled to wasm.

Without this, a user can get:

LLVM ERROR: Global variable '_ZN21node_template_runtime1_16SECTION_CONTENTS17h9fe85d507cb05984E' has an invalid section specifier 'runtime_version': mach-o section specifier requires a segment and section separated by a comma.
error: could not compile `node-template-runtime`

@pepyakin pepyakin added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels May 18, 2021
@pepyakin pepyakin requested a review from arkpar May 18, 2021 10:40
@pepyakin
Copy link
Contributor Author

I can confirm this builds locally on my macOS machine.

@pepyakin
Copy link
Contributor Author

bot merge

@ghost
Copy link

ghost commented May 18, 2021

Trying merge.

@ghost
Copy link

ghost commented May 18, 2021

Bot will approve on the behalf of @pepyakin, since they are a team lead, in an attempt to reach the minimum approval count

@ghost ghost merged commit d908ef8 into master May 18, 2021
@ghost ghost deleted the ser-sections-only-for-wasm branch May 18, 2021 12:06
nazar-pc pushed a commit to autonomys/substrate that referenced this pull request Aug 8, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants