Skip to content

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Jul 10, 2019

Golang is good at computing explicit dependencies, there wasn't really
a reason to re-invent the wheel (computing the dependencies took as long
as invoking the compiler).

However, we continue to compute and use the non-explicit dependencies (generated
code) as Make recipe prerequisites.

This gives us the best of both worlds, while also reducing the time for make
to read the Makefile (speeding up things like autocompletion) and adding fresh
compile-time provided symbols (e.g. git commit hash) in every build.

Fixes #989 (which was introduced in #944 )

@2opremio 2opremio requested a review from errordeveloper July 10, 2019 21:38
@2opremio 2opremio force-pushed the 989-back-to-phony-targets branch from 2887009 to b59e3d1 Compare July 10, 2019 22:16
Golang is good at computing explicit dependencies, there wasn't really
a reason to re-invent the wheel (computing the dependencies took as long
as invoking Golang).

However, we continue to compute and use the non-explicit dependencies (generated
code) as Make recipe prerequisites.

This gives us the best of both worlds, while also reducing the time for `make`
to read the Makefile (speeding up things like autocompletion) and adding fresh
compile-time provided symbols (e.g. git commit hash) in every build.
@2opremio 2opremio force-pushed the 989-back-to-phony-targets branch from b59e3d1 to ea6fc1d Compare July 10, 2019 22:27
@2opremio 2opremio requested a review from martina-if July 10, 2019 22:44
@errordeveloper errordeveloper added this to the 0.2.0 milestone Jul 11, 2019
@2opremio 2opremio merged commit 547bb74 into master Jul 11, 2019
@2opremio 2opremio deleted the 989-back-to-phony-targets branch July 11, 2019 07:59
@errordeveloper errordeveloper modified the milestones: 0.2.0, 0.1.40 Jul 11, 2019
gemagomez pushed a commit that referenced this pull request Jul 17, 2019
This problem was introduced in PR #1014
errordeveloper pushed a commit that referenced this pull request Jul 19, 2019
This problem was introduced in PR #1014
errordeveloper pushed a commit that referenced this pull request Jul 19, 2019
This problem was introduced in PR #1014
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.

build dependencies exclude linker flags
2 participants