ci(amd64/clang/lsan): replace conan commands with cmake
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
0700ab282a
commit
5c96e2deb9
1 changed files with 19 additions and 14 deletions
|
@ -7,20 +7,25 @@ rm -rf ./build
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
export DISPLAY=:99
|
export DISPLAY=:99
|
||||||
|
|
||||||
conan build . \
|
cmake .. \
|
||||||
-c tools.system.package_manager:mode=install \
|
-G Ninja \
|
||||||
-c tools.cmake.cmaketoolchain:generator=Ninja \
|
-DCMAKE_LINKER_TYPE=MOLD \
|
||||||
-c tools.build:cxxflags='["-g", "-fno-omit-frame-pointer", "-nostdinc++", "-isystem", "/libcxx_lsan/include/c++/v1/", "-fsanitize=leak"]' \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-c tools.build:sharedlinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-c tools.build:exelinkflags='["-L/libcxx_lsan/lib", "-Wl,-rpath,/libcxx_lsan/lib", "-lc++", "-lc++abi", "-fsanitize=leak"]' \
|
-DCMAKE_CXX_FLAGS="
|
||||||
-c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \
|
-fsanitize=leak
|
||||||
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
|
-g
|
||||||
-s build_type=Release \
|
-fno-omit-frame-pointer
|
||||||
-s compiler=clang \
|
-std=c++23
|
||||||
-s compiler.version=20 \
|
-nostdinc++
|
||||||
-s compiler.libcxx=libc++ \
|
-isystem /libcxx_lsan/include/c++/v1/" \
|
||||||
-o use_mold=True \
|
-DCMAKE_EXE_LINKER_FLAGS="
|
||||||
--build=missing
|
-fsanitize=leak
|
||||||
|
-L/libcxx_lsan/lib
|
||||||
|
-lc++
|
||||||
|
-lc++abi
|
||||||
|
-Wl,-rpath,/libcxx_lsan/lib" \
|
||||||
|
&& cmake --build . -j`nproc`
|
||||||
|
|
||||||
for test in $(find ./build -type f -name '*_tests' -executable); do
|
for test in $(find ./build -type f -name '*_tests' -executable); do
|
||||||
echo "Running $test"
|
echo "Running $test"
|
||||||
|
|
Loading…
Add table
Reference in a new issue