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

regenerate jumborow.wasm when EOSIO_COMPILE_TEST_CONTRACTS enabled #1026

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

spoonincode
Copy link
Member

When EOSIO_COMPILE_TEST_CONTRACTS is set, regenerate the wasm from the wast using cdt tooling.

add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/jumborow.wasm"
COMMAND "${CDT_ROOT}/bin/eosio-wast2wasm" "${CMAKE_CURRENT_SOURCE_DIR}/jumborow.wast" -o "${CMAKE_CURRENT_BINARY_DIR}/jumborow.wasm"
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/jumborow.wast")
add_custom_target(gen_jumborow_wasm ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/jumborow.wasm")
Copy link
Member Author

Choose a reason for hiding this comment

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

Using ALL is an anti-pattern imo. But since we're building this with ExternalProject, and then

BUILD_ALWAYS 1

on top of that, doesn't really seem to be too offensive to stuff this in ALL

@spoonincode spoonincode merged commit 6e0de35 into main Nov 13, 2024
36 checks passed
@spoonincode spoonincode deleted the jumborow_wasm_gen branch November 13, 2024 17:06
@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: Regenerate jumborow.wasm when EOSIO_COMPILE_TEST_CONTRACTS enabled.
Note:end

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.

4 participants