elixir-lang/elixir — pull request #440 by manpages (2012-08-22 16:55:00+00:00)
Title: [SOLVED] #439

Added ```;```s to the end of the lines where calls to the ```time```. Now correct performance is guaranteed if at least one of two instruments are avaliable:

- time shell builtin

- GNU time binary

That solves #439 properly (in terms of makefile shamanism), not with ```eval``` that was suggested.

The reason for such a strange ```make``` behaviour is optimization that refuses to run shell builtins.

Please note that if both GNU time and time builtin is present, builtin will be run with the highest priority and thus no additional output will be printed. Here is an example diff for ```$ make test``` between builtin and GNU timex

````diff
0a1,2
> 1.58user 0.25system 0:02.19elapsed 83%CPU (0avgtext+0avgdata 16252maxresident)k
> 0inputs+0outputs (0major+12503minor)pagefaults 0swaps
````

So now even if there are systems that have bash but no GNU time (for instance strangely packaged fresh Virtual Machine installations) make won't fail.

---
Jonn Mostovoy,
DA234FE7