forked from cieslarmichal/faker-cxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
106c05f
commit 84a0fb3
Showing
9 changed files
with
146 additions
and
108 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
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
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 |
---|---|---|
@@ -1,44 +1,45 @@ | ||
## 🔨 Building project with Apple Clang 16 | ||
# 🔨 Building project with Apple Clang | ||
|
||
### 1. Install Clang 16 | ||
## 1. Install Apple Clang | ||
|
||
```bash | ||
brew install llvm@16 | ||
brew install llvm@18 | ||
``` | ||
|
||
### 2. Prepare build directory | ||
and add compiler to path: | ||
|
||
```bash | ||
export PATH="/opt/homebrew/opt/llvm@18/bin:$PATH" | ||
``` | ||
|
||
## 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. Setup CMake | ||
## 3. Setup CMake | ||
|
||
```bash | ||
cmake .. -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm@16/bin/clang++ | ||
cmake -B ./build -DCMAKE_CXX_COMPILER=clang++ -DBUILD_TESTING=ON | ||
``` | ||
|
||
⚠️ **Warning:** Ensure that the path `/opt/homebrew/opt/llvm@16/bin/clang++` is valid on your system. If this path is | ||
not correct, replace it with the correct path to your Clang 16 compiler. You can find the correct path by using the | ||
command `brew --prefix llvm@16`. Adjust the CMake command accordingly. | ||
|
||
### 4. Build | ||
## 4. Build | ||
|
||
```bash | ||
make | ||
cmake --build ./build | ||
``` | ||
|
||
### 5. Run tests | ||
## 5. Run tests | ||
|
||
```bash | ||
./faker-cxx-UT | ||
``` | ||
|
||
--- | ||
or using CTest: | ||
|
||
**Note:** This guide assumes a standard installation of Homebrew and the default paths it uses. If your Homebrew or LLVM | ||
installation paths are different, you will need to adjust the commands accordingly. Remember that paths and specific | ||
commands might vary depending on your system configuration and the versions of the tools installed. | ||
```bash | ||
ctest --test-dir ./build | ||
``` |
Oops, something went wrong.