If the process is exiting as a child process, don't perform the file exists check.
This removes an unnecessary task that has disk I/O implications.
#ifndef _di_fake_build_library_script_
int fake_build_library_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
fake_build_touch(data, file_stage, status);
#ifndef _di_fake_build_library_shared_
int fake_build_library_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_shared.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_library_static_
int fake_build_library_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_static.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_object_script_
int fake_build_object_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
fake_build_touch(data, file_stage, status);
#ifndef _di_fake_build_object_shared_
int fake_build_object_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_shared.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_object_static_
int fake_build_object_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_static.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_objects_static_
int fake_build_objects_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_library.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_program_script_
int fake_build_program_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
fake_build_touch(data, file_stage, status);
#ifndef _di_fake_build_program_shared_
int fake_build_program_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_shared.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_program_static_
int fake_build_program_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_static.used) return 0;
if (data->main->output.verbosity != f_console_verbosity_quiet_e && data->main->output.verbosity != f_console_verbosity_error_e) {
#ifndef _di_fake_build_skeleton_
void fake_build_skeleton(fake_data_t * const data, fake_build_data_t * const data_build, const mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return;
+ if (*status == F_child) return;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true);
f_string_static_t path_headers = f_string_static_t_initialize;
path_headers.used = data->path_build_includes.used + data_build->setting.path_headers.used;
#ifndef _di_fake_build_execute_process_script_
int fake_build_execute_process_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_string_static_t process_script, const f_string_static_t file_stage, f_status_t *status) {
- if (F_status_is_error(*status)|| *status == F_child || f_file_exists(file_stage, F_true) == F_true) return data->main->child;
+ if (*status == F_child) return data->main->child;
+ if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true) return 0;
if (!process_script.used) return 0;
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;