You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sz...@apache.org on 2024/03/21 15:45:03 UTC
(nifi-minifi-cpp) 03/03: MINIFICPP-2318 Use libc++ in the clang CI build
This is an automated email from the ASF dual-hosted git repository.
szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit ba29f47c44466844c7ed16b6f5f98348d5b62537
Author: Ferenc Gerlits <fg...@gmail.com>
AuthorDate: Thu Mar 21 13:54:41 2024 +0100
MINIFICPP-2318 Use libc++ in the clang CI build
Closes #1746
Signed-off-by: Marton Szasz <sz...@apache.org>
---
.github/workflows/ci.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index faaf0ba1f..b83e02a32 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -443,9 +443,13 @@ jobs:
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: build
run: |
+ export CC=clang-16
+ export CXX=clang++-16
+ export CXXFLAGS="-stdlib=libc++"
+ export LDFLAGS="-stdlib=libc++"
python3 -m venv venv && source venv/bin/activate \
&& pip install -r requirements.txt \
- && python main.py --noninteractive --skip-compiler-install --cmake-options="-DCMAKE_C_COMPILER=clang-16 -DCMAKE_CXX_COMPILER=clang++-16 -DSTRICT_GSL_CHECKS=AUDIT -DCMAKE_EXPORT_COMPILE_COMMANDS=ON" --minifi-options="${UBUNTU_CLANG_MINIFI_OPTIONS}"
+ && python main.py --noninteractive --skip-compiler-install --cmake-options="-DSTRICT_GSL_CHECKS=AUDIT -DCMAKE_EXPORT_COMPILE_COMMANDS=ON" --minifi-options="${UBUNTU_CLANG_MINIFI_OPTIONS}"
working-directory: bootstrap
- id: cache_save
uses: actions/cache/save@v4