LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenclast

LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenclast
Encountered with PackageCompiler.jl on Julia 1.12.1 , works on 1.11.7

Julia Version 1.12.1
Commit ba1e628ee49 (2025-10-17 13:02 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 12 × Intel(R) Xeon(R) CPU @ 2.20GHz
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, cascadelake)
  GC: Built with stock GC
Threads: 1 default, 1 interactive, 1 GC (on 12 virtual cores)
Environment:
  LD_LIBRARY_PATH = 

I know it’s a CPU compatibility thing. Is there like a compiler flag I can set?