From: Kevin Day Date: Wed, 10 Dec 2025 03:21:16 +0000 (-0600) Subject: Update: Make c the default build_language in Featureless Make. X-Git-Tag: 0.8.0~44 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=f35161de194f4f4057f114118219e0c75fd09d0b;p=fll Update: Make c the default build_language in Featureless Make. --- diff --git a/build/scripts/bootstrap.sh b/build/scripts/bootstrap.sh index 2cc6d88..0ff2bb9 100644 --- a/build/scripts/bootstrap.sh +++ b/build/scripts/bootstrap.sh @@ -860,6 +860,13 @@ bootstrap_load_settings() { fi done + # Provide language default. + bootstrap_id "build_language" + + if [[ ${key} != "" ]] ; then + variables[${key}]="c" + fi + # Single value Objects. for i in build_compiler build_indexer build_language build_name build_script build_shared build_sources_object build_sources_object_shared build_sources_object_static build_static has_path_standard path_headers path_language path_library_script path_library_shared path_library_static path_object_script path_object_shared path_object_static path_program_script path_program_shared path_program_static path_sources path_sources_headers path_sources_library path_sources_object path_sources_program path_sources_script preserve_path_headers process_post process_pre search_exclusive search_shared search_static stage version_file version_major version_major_prefix version_micro version_micro_prefix version_minor version_minor_prefix version_nano version_nano_prefix version_target ; do diff --git a/level_3/fake/c/main/build/load.c b/level_3/fake/c/main/build/load.c index e447196..ad35760 100644 --- a/level_3/fake/c/main/build/load.c +++ b/level_3/fake/c/main/build/load.c @@ -650,6 +650,9 @@ extern "C" { F_false, // version_target }; + // Set defaults. + setting->language = fake_build_language_c_e; + f_number_unsigned_t i = 0; f_number_unsigned_t j = 0; diff --git a/level_3/fake/c/main/common/type.h b/level_3/fake/c/main/common/type.h index 9069f68..bd63259 100644 --- a/level_3/fake/c/main/common/type.h +++ b/level_3/fake/c/main/common/type.h @@ -627,7 +627,7 @@ extern "C" { #define fake_build_setting_t_initialize { \ .flag = 0, \ - .language = 0, \ + .language = fake_build_language_c_e, \ .version_file = 0, \ .version_target = 0, \ .build_script = F_true, \