Compare commits
4 commits
5de1037e93
...
3800c62827
| Author | SHA1 | Date | |
|---|---|---|---|
| 3800c62827 | |||
| 6d301ec510 | |||
| 6537b456f9 | |||
| 3d3ddd2197 |
4 changed files with 56 additions and 53 deletions
|
|
@ -5,22 +5,31 @@ cd $(git rev-parse --show-toplevel)/
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
|
export CXX=$(which clang++)
|
||||||
|
export CC=$(which clang)
|
||||||
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_msan/include/c++/v1/", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-c tools.build:sharedlinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-c tools.build:exelinkflags='["-L/libcxx_msan/lib", "-Wl,-rpath,/libcxx_msan/lib", "-lc++", "-lc++abi", "-fsanitize=memory", "-fsanitize-memory-track-origins"]' \
|
-DCMAKE_CXX_FLAGS=" \
|
||||||
-c tools.info.package_id:confs='["tools.build:cxxflags","tools.build:sharedlinkflags","tools.build:exelinkflags"]' \
|
-fsanitize=memory \
|
||||||
-c tools.build:compiler_executables='{"c": "clang", "cpp": "clang++"}' \
|
-fsanitize-memory-track-origins \
|
||||||
-s build_type=Release \
|
-g \
|
||||||
-s compiler=clang \
|
-fno-omit-frame-pointer \
|
||||||
-s compiler.version=20 \
|
-std=c++23 \
|
||||||
-s compiler.libcxx=libc++ \
|
-nostdinc++ \
|
||||||
-o use_mold=True \
|
-isystem /libcxx_msan/include/c++/v1/" \
|
||||||
--build=missing
|
-DCMAKE_EXE_LINKER_FLAGS=" \
|
||||||
|
-fsanitize=memory \
|
||||||
|
-fsanitize-memory-track-origins \
|
||||||
|
-L/libcxx_msan/lib \
|
||||||
|
-lc++ \
|
||||||
|
-lc++abi \
|
||||||
|
-Wl,-rpath,/libcxx_msan/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"
|
||||||
|
|
|
||||||
|
|
@ -5,25 +5,18 @@ cd $(git rev-parse --show-toplevel)/
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
export DISPLAY=:99
|
|
||||||
export CXX=$(which g++)
|
export CXX=$(which g++)
|
||||||
export CC=$(which gcc)
|
export CC=$(which gcc)
|
||||||
|
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:compiler_executables='{"c": "gcc", "cpp": "g++"}' \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-s build_type=Release \
|
-DENABLE_LLVM_COVERAGE=ON \
|
||||||
-s compiler=gcc \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-s compiler.version=15 \
|
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \
|
||||||
-s compiler.libcxx=libstdc++ \
|
&& cmake --build . -j `nproc`
|
||||||
-o enable_unit_tests=True \
|
|
||||||
-o enable_fuzz_tests=False \
|
|
||||||
-o enable_llvm_coverage=False \
|
|
||||||
-o enable_static_analysis=False \
|
|
||||||
-o use_mold=True \
|
|
||||||
-o export_compile_commands=False \
|
|
||||||
--build=missing
|
|
||||||
|
|
||||||
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"
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,18 @@ cd $(git rev-parse --show-toplevel)/
|
||||||
rm -rf ./build
|
rm -rf ./build
|
||||||
|
|
||||||
Xvfb :99 -screen 0 1024x768x16 &
|
Xvfb :99 -screen 0 1024x768x16 &
|
||||||
|
export CXX=$(which g++)
|
||||||
|
export CC=$(which gcc)
|
||||||
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 \
|
||||||
-s build_type=Release \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-o enable_unit_tests=True \
|
-DENABLE_LLVM_COVERAGE=ON \
|
||||||
-o use_mold=True \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
--build=missing
|
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libstdc++ -g -fno-omit-frame-pointer" \
|
||||||
|
&& 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"
|
||||||
|
|
@ -26,6 +28,5 @@ for test in $(find ./build -type f -name '*_tests' -executable); do
|
||||||
--show-leak-kinds=all \
|
--show-leak-kinds=all \
|
||||||
--track-origins=yes \
|
--track-origins=yes \
|
||||||
--verbose \
|
--verbose \
|
||||||
--error-exitcode=255 \
|
--error-exitcode=255 ${test} || exit 1
|
||||||
${test} || exit 1
|
|
||||||
done
|
done
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,12 @@ echo 'Runng this would be a waste of CPU cycles and electricty'
|
||||||
echo 'Fix the checks before removing these lines'
|
echo 'Fix the checks before removing these lines'
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
conan build . \
|
cmake .. \
|
||||||
-c tools.system.package_manager:mode=install \
|
-G Ninja \
|
||||||
-c tools.cmake.cmaketoolchain:generator=Ninja \
|
-DCMAKE_LINKER_TYPE=MOLD \
|
||||||
-s build_type=Release \
|
-DENABLE_UNIT_TESTS=ON \
|
||||||
-o enable_static_analysis=True \
|
-DENABLE_FUZZ_TESTS=ON \
|
||||||
-o enable_unit_tests=True \
|
-CMAKE_CXX_CLANG_TIDY=ON \
|
||||||
-o enable_fuzz_tests=True \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-o use_mold=True \
|
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++ -g -fno-omit-frame-pointer" \
|
||||||
--build=missing
|
&& cmake --build . -j `nproc`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue