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 96
96
# that your host compiler ships with libc++.
97
97
#use-libcxx = true
98
98
99
+ # The value specified here will be passed as `-DLLVM_USE_LINKER` to CMake.
100
+ #use-linker = "lld"
101
+
102
+
99
103
# =============================================================================
100
104
# General build configuration options
101
105
# =============================================================================
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ pub struct Config {
77
77
pub llvm_experimental_targets : String ,
78
78
pub llvm_link_jobs : Option < u32 > ,
79
79
pub llvm_version_suffix : Option < String > ,
80
+ pub llvm_use_linker : Option < String > ,
80
81
81
82
pub lld_enabled : bool ,
82
83
pub lldb_enabled : bool ,
@@ -255,6 +256,7 @@ struct Llvm {
255
256
version_suffix : Option < String > ,
256
257
clang_cl : Option < String > ,
257
258
use_libcxx : Option < bool > ,
259
+ use_linker : Option < String > ,
258
260
}
259
261
260
262
#[ derive( Deserialize , Default , Clone ) ]
@@ -517,6 +519,7 @@ impl Config {
517
519
config. llvm_version_suffix = llvm. version_suffix . clone ( ) ;
518
520
config. llvm_clang_cl = llvm. clang_cl . clone ( ) ;
519
521
set ( & mut config. llvm_use_libcxx , llvm. use_libcxx ) ;
522
+ config. llvm_use_linker = llvm. use_linker . clone ( ) ;
520
523
}
521
524
522
525
if let Some ( ref rust) = toml. rust {
Original file line number Diff line number Diff line change @@ -231,6 +231,10 @@ impl Step for Llvm {
231
231
cfg. define ( "LLVM_VERSION_SUFFIX" , suffix) ;
232
232
}
233
233
234
+ if let Some ( ref linker) = builder. config . llvm_use_linker {
235
+ cfg. define ( "LLVM_USE_LINKER" , linker) ;
236
+ }
237
+
234
238
if let Some ( ref python) = builder. config . python {
235
239
cfg. define ( "PYTHON_EXECUTABLE" , python) ;
236
240
}
You can’t perform that action at this time.
0 commit comments