From: <web...@pr...> - 2017-11-19 21:06:27
|
Author: rjy Date: Sun Nov 19 21:06:20 2017 New Revision: 4531 Log: src/Makefile.am: compile r_draw.c first, speed up parallel build r_draw.c takes considerably longer to compile than all other modules, due to all the macro expansion. Thus starting it as early as possible significantly reduces the time to complete a full rebuild in parallel. (I observed a reduction from 10.3 to 7.9 seconds on my current machine.) Modified: branches/prboom-plus-24/prboom2/src/Makefile.am Modified: branches/prboom-plus-24/prboom2/src/Makefile.am ============================================================================== --- branches/prboom-plus-24/prboom2/src/Makefile.am Sun Nov 19 21:06:17 2017 (r4530) +++ branches/prboom-plus-24/prboom2/src/Makefile.am Sun Nov 19 21:06:20 2017 (r4531) @@ -18,8 +18,13 @@ CFLAGS = @CFLAGS@ @SDL_CFLAGS@ +# r_draw.c takes considerably longer to compile than all other modules, +# due to all the macro expansion. Thus starting it as early as possible +# significantly reduces the time to complete a full rebuild in parallel. COMMON_SRC = \ + r_draw.c \ + r_draw.h \ am_map.c \ am_map.h \ d_deh.c \ @@ -129,8 +134,6 @@ r_defs.h \ r_demo.c \ r_demo.h \ - r_draw.c \ - r_draw.h \ r_filter.c \ r_filter.h \ r_fps.c \ |