Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You will have to add flang, clang and mlir to the list of enabled projects.

At the moment, due to a bug that needs further investigation, clang is failing You will also need to tell clang where to find the builtins, and adding otherwise the linker will complain that it cannot find symbols such as __udivdi3 or others. Adding the path to the builtin library as described in the https://clang.llvm.org/docs/UsersManual.html#finding-clang-runtime-libraries doesn’t seem to be working at the moment (bug report pending, since the LLVM bugzilla is currently locked due to the upstream migration to Github issues). Luckily, we can work around this issue by adding the builtin library directly on every link command (-DCMAKE_EXE*_LINKER_FLAGS=path/to/clang_rt.builtins-aarch64.lib; if you’re lucky you’ll only need CMAKE_EXE_LINKER_FLAGS, but depending on the compiler version you’re using and your other build flags, you might also need to also set CMAKE_SHARED_LINKER_FLAGS or CMAKE_STATIC_LINKER_FLAGS).

You should end up with a script that looks something like this:

...