Adding an advanced option flag with Enzyme CMake
gaurav-arya opened this issue · comments
Gaurav Arya commented
I'm using Enzyme's CMake template (https://github.com/EnzymeAD/CMake-Template/blob/main/CMakeLists.txt) and I'm not sure how to add advanced options like loose-type-analysis
that are mentioned in the docs: https://enzyme.mit.edu/getting_started/UsingEnzyme/. I'd appreciate any help, thanks!
Tim Gymnich commented
I haven’t tried myself. But maybe something like add_link_options(-mllvm -your-flag)
in case you are using LLDEnzyme. Or add_compile_options(-mllvm -your-flag)
for ClangEnzyme
William Moses commented
Resolved by adding extra parameters to Enzyme exported cmake