about summary refs log tree commit diff
path: root/src/bootstrap/native.rs
diff options
context:
space:
mode:
authorJoseph Rafael Ferrer <rafael2x0@gmail.com>2020-10-30 18:19:56 +0800
committerJoseph Rafael Ferrer <rafael2x0@gmail.com>2020-10-30 18:23:02 +0800
commit301bb123f424954cd3faee11bbbfb0605e5ae0e8 (patch)
treebf87e05ad0fdbd1f15c8ae0371224b5b7b2a3601 /src/bootstrap/native.rs
parent8df58ae03a8fda8ed126c02fbc16b530d18344df (diff)
downloadrust-301bb123f424954cd3faee11bbbfb0605e5ae0e8.tar.gz
rust-301bb123f424954cd3faee11bbbfb0605e5ae0e8.zip
Enable LLVM Polly via llvm-args.
Diffstat (limited to 'src/bootstrap/native.rs')
-rw-r--r--src/bootstrap/native.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs
index 37d6fab070b..6dc83c7d70a 100644
--- a/src/bootstrap/native.rs
+++ b/src/bootstrap/native.rs
@@ -257,6 +257,10 @@ impl Step for Llvm {
             enabled_llvm_projects.push("compiler-rt");
         }
 
+        if let Some(true) = builder.config.llvm_polly {
+            enabled_llvm_projects.push("polly");
+        }
+
         // We want libxml to be disabled.
         // See https://github.com/rust-lang/rust/pull/50104
         cfg.define("LLVM_ENABLE_LIBXML2", "OFF");