https://github.com/willkill07/cxx-modules-example
Example getting C++ modules working with clang>=18
https://github.com/willkill07/cxx-modules-example
Last synced: 3 months ago
JSON representation
Example getting C++ modules working with clang>=18
- Host: GitHub
- URL: https://github.com/willkill07/cxx-modules-example
- Owner: willkill07
- License: cc0-1.0
- Created: 2024-02-10T21:14:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-15T05:00:05.000Z (over 1 year ago)
- Last Synced: 2025-02-24T04:13:16.482Z (3 months ago)
- Language: C++
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cxx-modules-example
Example getting C++ modules working with clang>=18
If you don't have the latest LLVM with `LIBCXX_INSTALL_MODULES=On` configured
as an explicit option, I provide an ArchLinux PKGBUILD which can be used. You
can also inspect this PKGBUILD file if you want to build LLVM yourself
(regardless of your Linux distribution)## Build Prerequisites
* a modern LLVM+Clang configured with `LIBCXX_INSTALL_MODULES=On` (>=18 rc1)
* CMake >= 3.28
* Ninja (you must use ninja -- Unix Makefiles will absolutely not work)## Build Directions
```
cmake -GNinja -Bbuild -DCMAKE_CXX_COMPILER=/path/to/modern/clang++
cmake --build build
```