Starting a parallel build
Follow the steps mentioned in this content to start a parallel build.
To start a parallel build:
- Set the CCASE_HOST_TYPE variable. The value of this variable determines which
build hosts file that clearmake looks for in your home directory:
- Value
- Build hosts file that clearmake looks for.
- day
- .bldhost.day
- night
- .bldhost.night
- Start clearmake. To enable parallel building, use the -J
command-line option or set the CCASE_CONC environment variable. To specify
a build hosts file, use the -B option. To have clearmake
choose a build hosts file, do not use -B.
For example, to specify a build hosts file and start a build that builds up to five targets concurrently, use one of the following methods:
% clearmake -J 5 -B ~/.bldhost.day my_target
% setenv CCASE_CONC 5 % clearmake-B ~/.bldhost.day my_target
% setenv CCASE_HOST_TYPE day % clearmake-J 5 my_target
% setenv CCASE_CONC 5 % setenv CCASE_HOST_TYPE day % clearmake my_target
(command-line options)
(environment variable)
(environment variable and command-line option)
(environment variables)
Note: If you specify -J, but do not set the CCASE_HOST_TYPE
variable or specify a build hosts file with -B, clearmake builds
run in parallel on the local host.