-
Notifications
You must be signed in to change notification settings - Fork 102
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
No description provided.