about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-09-06 09:42:37 +0000
committerbors <bors@rust-lang.org>2024-09-06 09:42:37 +0000
commit59d4114b2d1aaac9a6dfe770997f2e79ccfd28ab (patch)
tree2b7a461f33c82d2473e618f01d1b279696f59f70 /compiler/rustc_lexer/src/lib.rs
parenta3af2085ccdc1890fef22b96397ac58f714c5580 (diff)
parent4f5c16d62f250024a111aaf827927c32bc88e4da (diff)
downloadrust-59d4114b2d1aaac9a6dfe770997f2e79ccfd28ab.tar.gz
rust-59d4114b2d1aaac9a6dfe770997f2e79ccfd28ab.zip
Auto merge of #129176 - EnzymeAD:enzyme-backend, r=albertlarsan68
Autodiff Upstreaming - enzyme backend

Tracking issue: https://github.com/rust-lang/rust/issues/124509

Part of https://github.com/rust-lang/rust/pull/129175

This PR should allow building Enzyme from source on Tier 1 targets (when also building LLVM), except MSVC.
It's only a small fraction (~200 lines) of the whole upstream PR, but due to bootstrapping and the number of configurations in which rustc can be build I assume that this will be the hardest to merge, so I'm starting with it.
Happy to hear what changes are required to be able to upstream this code.

**Content:**
It contains a new configure flag `--enable-llvm-enzyme`, and will build the new Enzyme submodule when it is set.

**Discussion:**
Apparently Rust CI isn't able to clone repositories outside the rust-lang org? At least I'm seeing this error in CI:
```
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```
Does that mean we would need to mirror github.com/EnzymeAD/Enzyme in rust-lang, until LLVM upgrades Enzyme from an Incubator project to something that ships as part of the monorepo?

Tracking:

- https://github.com/rust-lang/rust/issues/124509
Diffstat (limited to 'compiler/rustc_lexer/src/lib.rs')
0 files changed, 0 insertions, 0 deletions