cxx-cmake-example
cxx-cmake-example copied to clipboard
Windows and macOS CI
It would be really helpful to have an example for how to get this working on CI on Windows and macOS. It is not obvious how to do this considering the requirement for rustc and clang to be using the same version of LLVM. Ideally most of the setup steps should be in standalone shell scripts (maybe PowerShell on Windows?) that could be easily run on any CI system or to setup a local development environment. Taking it a step further, a GitHub Actions action could be made to set up clang and rustc for cross-language LTO and use caching on GitHub Actions for the binaries of the compilers.
I'm not familiar with Windows or macOS; contributions are welcomed!
This isn't at the top of my priorities now, but I may eventually get around to working on this. Easier to start in this small proof-of-concept repo than a real world application.
If I understand correctly, I need to build llvm from source, since
➜ cxx-cmake-example git:(master) ✗ brew upgrade llvm
Warning: llvm 11.1.0 already installed
➜ cxx-cmake-example git:(master) ✗ clang --version
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
➜ cxx-cmake-example git:(master) ✗
And I need clang 11.0
, correct?