@@ -1132,68 +1132,68 @@ impl Config {
1132
1132
}
1133
1133
1134
1134
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 ,
1138
1138
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 ,
1163
1163
} = toml. llvm . unwrap_or_default ( ) ;
1164
1164
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 {
1172
1172
config. llvm_link_shared . set ( Some ( v) ) ;
1173
1173
}
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 ( ) ) ;
1194
1194
1195
1195
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 ) ;
1197
1197
1198
1198
if config. llvm_from_ci {
1199
1199
let warn = |option : & str | {
@@ -1205,11 +1205,11 @@ impl Config {
1205
1205
) ;
1206
1206
} ;
1207
1207
1208
- if static_libstdcpp . is_some ( ) {
1208
+ if llvm_static_libstdcpp_toml . is_some ( ) {
1209
1209
warn ( "static-libstdcpp" ) ;
1210
1210
}
1211
1211
1212
- if link_shared . is_some ( ) {
1212
+ if llvm_link_shared_toml . is_some ( ) {
1213
1213
warn ( "link-shared" ) ;
1214
1214
}
1215
1215
@@ -1218,7 +1218,7 @@ impl Config {
1218
1218
// config to the ones used to build the LLVM artifacts on CI, and only notify users
1219
1219
// if they've chosen a different value.
1220
1220
1221
- if libzstd . is_some ( ) {
1221
+ if llvm_libzstd_toml . is_some ( ) {
1222
1222
println ! (
1223
1223
"WARNING: when using `download-ci-llvm`, the local `llvm.libzstd` option, \
1224
1224
like almost all `llvm.*` options, will be ignored and set by the LLVM CI \
@@ -1230,7 +1230,7 @@ impl Config {
1230
1230
}
1231
1231
}
1232
1232
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 ( ) {
1234
1234
// If we're building with ThinLTO on, by default we want to link
1235
1235
// to LLVM shared, to avoid re-doing ThinLTO (which happens in
1236
1236
// the link step) with each stage.
0 commit comments