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

Faster glide #2869

Closed
wants to merge 3 commits into from
Closed

Conversation

typhoonzero
Copy link
Contributor

So when make and make test for go programs it will be faster.

Fix #2868

add_custom_command(TARGET go_path
message(STATUS "link ${CMAKE_SOURCE_DIR} to ${PADDLE_IN_GOPATH}...")

execute_process(
Copy link
Contributor

@helinwang helinwang Jul 14, 2017

Choose a reason for hiding this comment

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

I think the execute_process will only run when cmake is executed (when running cmake .., or when cmake file changed). But it will not run every time make is called, or when glide.lock is changed.

Also it may be better not to delete the add_custom_target(go_vendor), since go build need to add dependency to go_vendor target as well, otherwise go build may start before or concurrently with glide install.

This is an interesting problem, I gave it a try as well, can you take a look? #2884

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting, don't know why travis didn't run successfully. Well, if compiling with cmake, the vendor will be prepared at cmake time, and following go build will pass. Seems #2884 is better~ Thanks~

@typhoonzero typhoonzero deleted the faster_glide branch August 11, 2017 06:52
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