From 778cda58abc61711f054d89b09d8bc016763e774 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Wed, 20 Dec 2023 00:47:51 +0100 Subject: llvm-orc-jit: add build-llvm.sh, enforce find_package success, and print used llvm/clang cmake config --- content/2022-07-07-llvm-orc-jit/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'content/2022-07-07-llvm-orc-jit/index.md') diff --git a/content/2022-07-07-llvm-orc-jit/index.md b/content/2022-07-07-llvm-orc-jit/index.md index e453f0c..0fc2f27 100644 --- a/content/2022-07-07-llvm-orc-jit/index.md +++ b/content/2022-07-07-llvm-orc-jit/index.md @@ -6,7 +6,7 @@ tags = ["llvm", "clang", "c++"] +++ **EDIT**: -- 2023-12-19: Migrate example to `llvm17`. +- 2023-12-19: Migrate example to `LLVM-17`. Based on the in-memory compiler shared in the last post ([C to LLVM IR in memory using libclang](@/2022-06-18-libclang-c-to-llvm-ir/index.md)), this post @@ -41,8 +41,12 @@ The sources are available under [llvm-orc-jit][post-src]. The following [Makefile][post-makefile] provides a convenience wrapper to configure, build, and run the example with a single `make` invocation. +Additionally, the [build-llvm.sh][post-build-llvm] script is provided to build +specific LLVM versions. + [post-src]: https://git.memzero.de/blog/tree/content/2022-07-07-llvm-orc-jit?h=main [post-makefile]: https://git.memzero.de/blog/tree/content/2022-07-07-llvm-orc-jit/Makefile?h=main +[post-build-llvm]: https://git.memzero.de/blog/tree/content/2022-07-07-llvm-orc-jit/build-llvm.sh?h=main [src-clang]: https://github.com/llvm/llvm-project/tree/main/clang [blog-clang-in-memory]: https://blog.audio-tk.com/2018/09/18/compiling-c-code-in-memory-with-clang/ [llvm-jit-tut]: https://www.llvm.org/docs/tutorial/BuildingAJIT1.html -- cgit v1.2.3