@@ -1132,68 +1132,68 @@ impl Config {
11321132 }
11331133
11341134 let Llvm {
1135- optimize : optimize_toml ,
1136- thin_lto,
1137- release_debuginfo,
1135+ optimize : llvm_optimize_toml ,
1136+ thin_lto : llvm_thin_lto_toml ,
1137+ release_debuginfo : llvm_release_debuginfo_toml ,
11381138 assertions : _,
1139- tests : llvm_tests ,
1140- enzyme : llvm_enzyme ,
1141- plugins : llvm_plugin ,
1142- static_libstdcpp,
1143- libzstd,
1144- ninja,
1145- targets,
1146- experimental_targets,
1147- link_jobs,
1148- link_shared,
1149- version_suffix,
1150- clang_cl,
1151- cflags,
1152- cxxflags,
1153- ldflags,
1154- use_libcxx,
1155- use_linker,
1156- allow_old_toolchain,
1157- offload : llvm_offload ,
1158- polly,
1159- clang,
1160- enable_warnings,
1161- download_ci_llvm,
1162- build_config,
1139+ tests : llvm_tests_toml ,
1140+ enzyme : llvm_enzyme_toml ,
1141+ plugins : llvm_plugin_toml ,
1142+ static_libstdcpp : llvm_static_libstdcpp_toml ,
1143+ libzstd : llvm_libzstd_toml ,
1144+ ninja : llvm_ninja_toml ,
1145+ targets : llvm_targets_toml ,
1146+ experimental_targets : llvm_experimental_targets_toml ,
1147+ link_jobs : llvm_link_jobs_toml ,
1148+ link_shared : llvm_link_shared_toml ,
1149+ version_suffix : llvm_version_suffix_toml ,
1150+ clang_cl : llvm_clang_cl_toml ,
1151+ cflags : llvm_cflags_toml ,
1152+ cxxflags : llvm_cxxflags_toml ,
1153+ ldflags : llvm_ldflags_toml ,
1154+ use_libcxx : llvm_use_libcxx_toml ,
1155+ use_linker : llvm_use_linker_toml ,
1156+ allow_old_toolchain : llvm_allow_old_toolchain_toml ,
1157+ offload : llvm_offload_toml ,
1158+ polly : llvm_polly_toml ,
1159+ clang : llvm_clang_toml ,
1160+ enable_warnings : llvm_enable_warnings_toml ,
1161+ download_ci_llvm : llvm_download_ci_llvm_toml ,
1162+ build_config : llvm_build_config_toml ,
11631163 } = toml. llvm . unwrap_or_default ( ) ;
11641164
1165- set ( & mut config. ninja_in_file , ninja ) ;
1166- set ( & mut config. llvm_optimize , optimize_toml ) ;
1167- set ( & mut config. llvm_thin_lto , thin_lto ) ;
1168- set ( & mut config. llvm_release_debuginfo , release_debuginfo ) ;
1169- set ( & mut config. llvm_static_stdcpp , static_libstdcpp ) ;
1170- set ( & mut config. llvm_libzstd , libzstd ) ;
1171- if let Some ( v) = link_shared {
1165+ set ( & mut config. ninja_in_file , llvm_ninja_toml ) ;
1166+ set ( & mut config. llvm_optimize , llvm_optimize_toml ) ;
1167+ set ( & mut config. llvm_thin_lto , llvm_thin_lto_toml ) ;
1168+ set ( & mut config. llvm_release_debuginfo , llvm_release_debuginfo_toml ) ;
1169+ set ( & mut config. llvm_static_stdcpp , llvm_static_libstdcpp_toml ) ;
1170+ set ( & mut config. llvm_libzstd , llvm_libzstd_toml ) ;
1171+ if let Some ( v) = llvm_link_shared_toml {
11721172 config. llvm_link_shared . set ( Some ( v) ) ;
11731173 }
1174- config. llvm_targets . clone_from ( & targets ) ;
1175- config. llvm_experimental_targets . clone_from ( & experimental_targets ) ;
1176- config. llvm_link_jobs = link_jobs ;
1177- config. llvm_version_suffix . clone_from ( & version_suffix ) ;
1178- config. llvm_clang_cl . clone_from ( & clang_cl ) ;
1179- config. llvm_tests = llvm_tests . unwrap_or_default ( ) ;
1180- config. llvm_enzyme = llvm_enzyme . unwrap_or_default ( ) ;
1181- config. llvm_plugins = llvm_plugin . unwrap_or_default ( ) ;
1182-
1183- config. llvm_cflags . clone_from ( & cflags ) ;
1184- config. llvm_cxxflags . clone_from ( & cxxflags ) ;
1185- config. llvm_ldflags . clone_from ( & ldflags ) ;
1186- set ( & mut config. llvm_use_libcxx , use_libcxx ) ;
1187- config. llvm_use_linker . clone_from ( & use_linker ) ;
1188- config. llvm_allow_old_toolchain = allow_old_toolchain . unwrap_or ( false ) ;
1189- config. llvm_offload = llvm_offload . unwrap_or ( false ) ;
1190- config. llvm_polly = polly . unwrap_or ( false ) ;
1191- config. llvm_clang = clang . unwrap_or ( false ) ;
1192- config. llvm_enable_warnings = enable_warnings . unwrap_or ( false ) ;
1193- config. llvm_build_config = build_config . clone ( ) . unwrap_or ( Default :: default ( ) ) ;
1174+ config. llvm_targets . clone_from ( & llvm_targets_toml ) ;
1175+ config. llvm_experimental_targets . clone_from ( & llvm_experimental_targets_toml ) ;
1176+ config. llvm_link_jobs = llvm_link_jobs_toml ;
1177+ config. llvm_version_suffix . clone_from ( & llvm_version_suffix_toml ) ;
1178+ config. llvm_clang_cl . clone_from ( & llvm_clang_cl_toml ) ;
1179+ config. llvm_tests = llvm_tests_toml . unwrap_or_default ( ) ;
1180+ config. llvm_enzyme = llvm_enzyme_toml . unwrap_or_default ( ) ;
1181+ config. llvm_plugins = llvm_plugin_toml . unwrap_or_default ( ) ;
1182+
1183+ config. llvm_cflags . clone_from ( & llvm_cflags_toml ) ;
1184+ config. llvm_cxxflags . clone_from ( & llvm_cxxflags_toml ) ;
1185+ config. llvm_ldflags . clone_from ( & llvm_ldflags_toml ) ;
1186+ set ( & mut config. llvm_use_libcxx , llvm_use_libcxx_toml ) ;
1187+ config. llvm_use_linker . clone_from ( & llvm_use_linker_toml ) ;
1188+ config. llvm_allow_old_toolchain = llvm_allow_old_toolchain_toml . unwrap_or ( false ) ;
1189+ config. llvm_offload = llvm_offload_toml . unwrap_or ( false ) ;
1190+ config. llvm_polly = llvm_polly_toml . unwrap_or ( false ) ;
1191+ config. llvm_clang = llvm_clang_toml . unwrap_or ( false ) ;
1192+ config. llvm_enable_warnings = llvm_enable_warnings_toml . unwrap_or ( false ) ;
1193+ config. llvm_build_config = llvm_build_config_toml . clone ( ) . unwrap_or ( Default :: default ( ) ) ;
11941194
11951195 config. llvm_from_ci =
1196- config. parse_download_ci_llvm ( download_ci_llvm , config. llvm_assertions ) ;
1196+ config. parse_download_ci_llvm ( llvm_download_ci_llvm_toml , config. llvm_assertions ) ;
11971197
11981198 if config. llvm_from_ci {
11991199 let warn = |option : & str | {
@@ -1205,11 +1205,11 @@ impl Config {
12051205 ) ;
12061206 } ;
12071207
1208- if static_libstdcpp . is_some ( ) {
1208+ if llvm_static_libstdcpp_toml . is_some ( ) {
12091209 warn ( "static-libstdcpp" ) ;
12101210 }
12111211
1212- if link_shared . is_some ( ) {
1212+ if llvm_link_shared_toml . is_some ( ) {
12131213 warn ( "link-shared" ) ;
12141214 }
12151215
@@ -1218,7 +1218,7 @@ impl Config {
12181218 // config to the ones used to build the LLVM artifacts on CI, and only notify users
12191219 // if they've chosen a different value.
12201220
1221- if libzstd . is_some ( ) {
1221+ if llvm_libzstd_toml . is_some ( ) {
12221222 println ! (
12231223 "WARNING: when using `download-ci-llvm`, the local `llvm.libzstd` option, \
12241224 like almost all `llvm.*` options, will be ignored and set by the LLVM CI \
@@ -1230,7 +1230,7 @@ impl Config {
12301230 }
12311231 }
12321232
1233- if !config. llvm_from_ci && config. llvm_thin_lto && link_shared . is_none ( ) {
1233+ if !config. llvm_from_ci && config. llvm_thin_lto && llvm_link_shared_toml . is_none ( ) {
12341234 // If we're building with ThinLTO on, by default we want to link
12351235 // to LLVM shared, to avoid re-doing ThinLTO (which happens in
12361236 // the link step) with each stage.
0 commit comments