cxx-cmake-example icon indicating copy to clipboard operation
cxx-cmake-example copied to clipboard

Windows and macOS CI

Open Be-ing opened this issue 3 years ago • 3 comments

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.

Be-ing avatar Feb 27 '21 01:02 Be-ing

I'm not familiar with Windows or macOS; contributions are welcomed!

XiangpengHao avatar Feb 28 '21 10:02 XiangpengHao

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.

Be-ing avatar Feb 28 '21 23:02 Be-ing

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?

nlinker avatar Mar 30 '21 18:03 nlinker