-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* docs:move clang++ compilation guide to docs (Issue #316) * docs:move clang++ compilation guide to docs (Issue #316) 101a * docs:move clang++ compilation guide to docs (Issue #316) 101b
- Loading branch information
1 parent
adef940
commit b28534c
Showing
2 changed files
with
47 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## 🔨 Building from sources with Clang 16 | ||
|
||
#### 1. Install Clang 16 | ||
|
||
```bash | ||
sudo add-apt-repository ppa:trebelnik-stefina/launchpad-getkeys \ | ||
&& sudo apt-get update \ | ||
&& sudo apt-get install launchpad-getkeys \ | ||
&& sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main' \ | ||
&& sudo launchpad-getkeys \ | ||
&& sudo apt-get update -y \ | ||
&& sudo apt-get install -y lld-16 ninja-build build-essential libstdc++-13-dev \ | ||
clang-16 clang-tools-16 llvm-16 lcov | ||
``` | ||
|
||
#### 2. Prepare build directory | ||
|
||
```bash | ||
git clone https://github.com/cieslarmichal/faker-cxx.git | ||
cd faker-cxx | ||
git submodule update --init --recursive | ||
mkdir build | ||
cd build | ||
``` | ||
|
||
#### 3. CMake setup with Clang 16 | ||
|
||
```bash | ||
cmake .. -DCMAKE_CXX_COMPILER=/usr/bin/clang++-16 | ||
``` | ||
|
||
#### 4. Build | ||
|
||
```bash | ||
make | ||
``` | ||
|
||
## 5. Run | ||
|
||
After building, you can run the built executable: | ||
|
||
```bash | ||
./faker-cxx-UT | ||
``` |