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

Cleanup build commands in Makefile #550

Merged
merged 1 commit into from
Aug 13, 2024
Merged

Conversation

webmaster128
Copy link
Member

No description provided.

Copy link
Member Author

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Some comments what I did and why

@@ -1,5 +1,3 @@
.PHONY: all build build-rust build-go test
Copy link
Member Author

Choose a reason for hiding this comment

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

Decentralize .PHONY to avoid outdated list

.PHONY: build
build:
make build-libwasmvm
make build-go
Copy link
Member Author

Choose a reason for hiding this comment

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

In the dependency notation we had before they may run in parallel (make build -j 2 would run both jobs at the same time)

(cd libwasmvm && cargo build)
cp libwasmvm/target/debug/$(SHARED_LIB_SRC) internal/api/$(SHARED_LIB_DST)
make update-bindings

# use release build to actually ship - smaller and much faster
build-rust-release:
.PHONY: build-libwasmvm
build-libwasmvm:
Copy link
Member Author

Choose a reason for hiding this comment

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

We don't need two different commands for the release build

@webmaster128 webmaster128 merged commit debea64 into main Aug 13, 2024
14 checks passed
@webmaster128 webmaster128 deleted the sw/makefile-build-commands branch August 13, 2024 11:28
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