Clone the src/llvm-project
submodule if profiling is enabled
To compile rustc with profiling information, `compiler-rt` from LLVM is required. Building it requires the `src/llvm-project` submodule to be initialized and updated.
This commit is contained in:
parent
36f4f4aa38
commit
e1e736b2a3
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ impl Step for Std {
|
|||
|
||||
builder.update_submodule(&Path::new("library").join("stdarch"));
|
||||
|
||||
// Profiler information requires LLVM's compiler-rt
|
||||
if builder.config.profiler {
|
||||
builder.update_submodule(&Path::new("src/llvm-project"));
|
||||
}
|
||||
|
||||
let mut target_deps = builder.ensure(StartupObjects { compiler, target });
|
||||
|
||||
let compiler_to_use = builder.compiler_for(compiler.stage, compiler.host, target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue