File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 82
82
# passed to prefer linking to shared libraries.
83
83
#link-shared = false
84
84
85
+ # When building llvm, this configures what is being appended to the version.
86
+ # If absent, we let the version as-is.
87
+ #version-suffix = "-rust"
88
+
85
89
# On MSVC you can compile LLVM with clang-cl, but the test suite doesn't pass
86
90
# with clang-cl, so this is special in that it only compiles LLVM with clang-cl
87
91
#clang-cl = '/path/to/clang-cl.exe'
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ pub struct Config {
86
86
pub llvm_targets : Option < String > ,
87
87
pub llvm_experimental_targets : String ,
88
88
pub llvm_link_jobs : Option < u32 > ,
89
+ pub llvm_version_suffix : Option < String > ,
89
90
90
91
pub lld_enabled : bool ,
91
92
pub lldb_enabled : bool ,
@@ -256,6 +257,7 @@ struct Llvm {
256
257
experimental_targets : Option < String > ,
257
258
link_jobs : Option < u32 > ,
258
259
link_shared : Option < bool > ,
260
+ version_suffix : Option < String > ,
259
261
clang_cl : Option < String >
260
262
}
261
263
@@ -516,6 +518,7 @@ impl Config {
516
518
config. llvm_experimental_targets = llvm. experimental_targets . clone ( )
517
519
. unwrap_or ( "WebAssembly;RISCV" . to_string ( ) ) ;
518
520
config. llvm_link_jobs = llvm. link_jobs ;
521
+ config. llvm_version_suffix = llvm. version_suffix . clone ( ) ;
519
522
config. llvm_clang_cl = llvm. clang_cl . clone ( ) ;
520
523
}
521
524
Original file line number Diff line number Diff line change @@ -239,6 +239,10 @@ impl Step for Llvm {
239
239
cfg. define ( "LLVM_NATIVE_BUILD" , builder. llvm_out ( builder. config . build ) . join ( "build" ) ) ;
240
240
}
241
241
242
+ if let Some ( ref suffix) = builder. config . llvm_version_suffix {
243
+ cfg. define ( "LLVM_VERSION_SUFFIX" , suffix) ;
244
+ }
245
+
242
246
if let Some ( ref python) = builder. config . python {
243
247
cfg. define ( "PYTHON_EXECUTABLE" , python) ;
244
248
}
You can’t perform that action at this time.
0 commit comments