Skip to content
Commit bd74370b authored by Rabin Vincent's avatar Rabin Vincent Committed by Masahiro Yamada
Browse files

Makefile: evaluate LDFLAGS_BUILD_ID only once



Evaluate LDFLAGS_BUILD_ID (which involves invoking the compiler) only
once instead of over and over.

This provides a ~20% reduction in null build time with x86 allnoconfig:

$ make allnoconfig && make -j8
$ perf stat -r5 -e sched:sched_process_exec make -j8
-       2 119      sched:sched_process_exec
+       1 878      sched:sched_process_exec

-       1,238817018 seconds time elapsed
+       0,971020553 seconds time elapsed

Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent e8a3118e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment