Skip to content

Commit 0efe947

Browse files
committed
wip
1 parent a77d364 commit 0efe947

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

config.toml.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ changelog-seen = 2
6666
#release-debuginfo = false
6767

6868
# Indicates whether we should build the LLVM Plugin Enzyme
69-
enzyme = true
69+
#enzyme = true
7070

7171
# Indicates whether the LLVM assertions are enabled or not
7272
#assertions = false

src/bootstrap/configure.py

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def v(*args):
7373
o("optimize", "rust.optimize", "build optimized rust code")
7474
o("optimize-llvm", "llvm.optimize", "build optimized LLVM")
7575
o("llvm-assertions", "llvm.assertions", "build LLVM with assertions")
76+
o("llvm-enzyme", "llvm.enzyme", "build LLVM with Enzyme")
7677
o("llvm-plugins", "llvm.plugins", "build LLVM with plugin interface")
7778
o("debug-assertions", "rust.debug-assertions", "build with debugging assertions")
7879
o("debug-assertions-std", "rust.debug-assertions-std", "build the standard library with debugging assertions")

src/bootstrap/native.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ impl Step for Llvm {
377377
cfg.build();
378378

379379
if builder.config.llvm_enzyme {
380-
381380
let executable = env::var("CMAKE").unwrap_or("cmake".to_owned());
382381
let mut cmd = Command::new(&executable);
383382
let enzyme_build = PathBuf::from("src").join("tools").join("enzyme").join("enzyme").join("build");
@@ -396,6 +395,9 @@ impl Step for Llvm {
396395
cmd.arg("-DENZYME_EXTERNAL_SHARED_LIB=ON");
397396
cmd.arg("-DLLVM_DIR=".to_owned() + llvm_build.to_str().unwrap());
398397
run_and_printerror(&mut cmd);
398+
//panic!("BAAAAAAAR");
399+
} else {
400+
panic!("FOOOOOOOOOOO");
399401
}
400402

401403

@@ -407,7 +409,7 @@ impl Step for Llvm {
407409
}
408410

409411
fn run_and_printerror(command: &mut Command) {
410-
println!("Running: `{:?}`", command);
412+
dbg!("Running: `{:?}`", &command);
411413
match command.status() {
412414
Ok(status) => {
413415
if !status.success() {

0 commit comments

Comments
 (0)